used
PASSWORD
to authorize server connection (must be first command from client to server) example:PASS mypassword
responses:
- ERR_NEEDMOREPARAMS
change or create user nickname to
USERNAME
if user with current nickname exist in server - ERR_NICKCOLLISION thrown prefixOLDNICK
can be used to change other user nicknameNICK mynewnick
:oldnick NICK newnick
- ERR_NONICKNAMEGIVEN
- ERR_ERRONEUSNICKNAME
- ERR_NICKNAMEINUSE
- ERR_NICKCOLLISION
command used to authenticate user in server database (must be second command from client to server after command
PASS
)USER guest tolmoon tolsun :Ronnie Reagan
- ERR_NEEDMOREPARAMS
- ERR_ALREADYREGISTRED
make current user irc operator,
LOGIN
andPASSWORD
are required to gain privilegesOPER login password
- ERR_NEEDMOREPARAMS
- RPL_YOUREOPER
- ERR_NOOPERHOST
- ERR_PASSWDMISMATCH
command to end client session, server closes connection with client after this message. If
MESSAGE
is not given - nickname will be usedQUIT :Gone to have lunch
None
join to channels named by comas using keys (if provided), if channel is not exist - creates channel and makes current user operator of new channel
JOIN #ch1
JOIN &ch2 password2, #ch3 password3
:user JOIN #channel
- ERR_NEEDMOREPARAMS
- ERR_BANNEDFROMCHAN
- ERR_INVITEONLYCHAN
- ERR_BADCHANNELKEY
- ERR_CHANNELISFULL
- ERR_BADCHANMASK
- ERR_NOSUCHCHANNEL
- ERR_TOOMANYCHANNELS
- RPL_TOPIC
leave current user from listed channels
PART #ch1, &ch2
- ERR_NEEDMOREPARAMS
- ERR_NOSUCHCHANNEL
- ERR_NOTONCHANNEL
command changes topic of channel
CHANNEL
toNEWTOPIC
or get channel topic if no arguments providedTOPIC #ch1
TOPIC &ch2 :new better topic
:user TOPIC #ch1
- ERR_NEEDMOREPARAMS
- ERR_NOTONCHANNEL
- RPL_NOTOPIC
- RPL_TOPIC
- ERR_CHANOPRIVSNEEDED
command list all visible (not private (+p), or secret (+s)) nicknames from listed channels, if no arguments provided - returned information about all online users. If user online and not in channel - his channel name is
*
NAMES #ch1
NAMES
- RPL_NAMREPLY
- RPL_ENDOFNAMES
command list channels and their topics, if no arguments provided - listed all channels. Private channels are listed without their topics as channel
Prv
unless current client is not in this private channel, secret channels are not listed at all, unless current client is not in this secret channelLIST #ch1
LIST
- ERR_NOSUCHSERVER
- RPL_LISTSTART
- RPL_LIST
- RPL_LISTEND
command invite users to channel, that the channel
CHANNEL
should exist, if channelCHANNEL
is invite only (mode +i), current user should be operator of channelCHANNEL
INVITE myfriend #ch1
:user INVITE another #ch1
- ERR_NEEDMOREPARAMS
- ERR_NOSUCHNICK
- ERR_NOTONCHANNEL
- ERR_USERONCHANNEL
- ERR_CHANOPRIVSNEEDED
- RPL_INVITING
- RPL_AWAY
kick user
USERNAME
from channel#CHANNEL
and if specified send him messageREASON
, command available only for operators, userUSERNAME
can join channelCHANNEL
again (commandKICK
is forced commandPART
)
send private message
MESSAGE
to userUSERNAME
send message
REASON
to userUSERNAME
and breaks connection with him, userUSERNAME
can login again