|
@ -31,13 +31,21 @@ PRIVMSG = cmd_fn("PRIVMSG", "{0} :{1}") |
|
|
|
|
|
|
|
|
# Error replies |
|
|
# Error replies |
|
|
ERR_NOSUCHNICK = reply_fn(401, "{0} :No such nick/channel") |
|
|
ERR_NOSUCHNICK = reply_fn(401, "{0} :No such nick/channel") |
|
|
ERR_NOSUCHSERVER = reply_fn(402, "{0}: No such server") |
|
|
|
|
|
|
|
|
ERR_NOSUCHSERVER = reply_fn(402, "{0} :No such server") |
|
|
|
|
|
ERR_NOSUCHCHANNEL = reply_fn(403, "{0} :No such channel") |
|
|
|
|
|
ERR_CANNOTSENDTOCHAN = reply_fn(404, "{0} :Cannot send to channel") |
|
|
|
|
|
ERR_TOOMANYCHANNELS = reply_fn(405, "{0} :You have joined too many channels") |
|
|
|
|
|
ERR_NOTEXTTOSEND = reply_fn(412, ":No text to send") |
|
|
|
|
|
ERR_NOTREGISTERED = reply_fn(451, ":You have not registered") |
|
|
|
|
|
|
|
|
# Command responses |
|
|
# Command responses |
|
|
RPL_WELCOME = reply_fn("001", "Welcome to the Internet Relay Network {0}") |
|
|
RPL_WELCOME = reply_fn("001", "Welcome to the Internet Relay Network {0}") |
|
|
RPL_YOURHOST = reply_fn("002", "Your host is {0}, running version {1}") |
|
|
RPL_YOURHOST = reply_fn("002", "Your host is {0}, running version {1}") |
|
|
RPL_CREATED = reply_fn("003", "This server was created {0}") |
|
|
RPL_CREATED = reply_fn("003", "This server was created {0}") |
|
|
RPL_MYINFO = reply_fn("004", "{0} {1} {2} {3}") |
|
|
RPL_MYINFO = reply_fn("004", "{0} {1} {2} {3}") |
|
|
|
|
|
RPL_AWAY = reply_fn(301, "{0} :{1}") |
|
|
|
|
|
RPL_UNAWAY = reply_fn(305, ":You are no longer marked as being away") |
|
|
|
|
|
RPL_NOWAWAY = reply_fn(306, ":You have been marked as being away") |
|
|
RPL_WHOISUSER = reply_fn(311, "{0} {1} {2} * :{3}") |
|
|
RPL_WHOISUSER = reply_fn(311, "{0} {1} {2} * :{3}") |
|
|
RPL_ENDOFWHO = reply_fn(315, "{0} :End of /WHO list") |
|
|
RPL_ENDOFWHO = reply_fn(315, "{0} :End of /WHO list") |
|
|
RPL_ENDOFWHOIS = reply_fn(318, "{0} :End of /WHOIS list") |
|
|
RPL_ENDOFWHOIS = reply_fn(318, "{0} :End of /WHOIS list") |
|
|