Module: Flexo::Numerics
- Defined in:
- lib/flexo/numerics.rb
Overview
This module contains a long list of constants. It maps numeric IRC codes to their text equivalents
(Everything is stolen from tools.ietf.org/html/rfc2812#section-5)
Constant Summary collapse
- RPL_WELCOME =
001- RPL_YOURHOST =
“Welcome to the Internet Relay Network <nick>!<user>@<host>”
002- RPL_CREATED =
“Your host is <servername>, running version <ver>”
003- RPL_MYINFO =
“This server was created <date>”
004- RPL_BOUNCE =
“<servername> <version> <available user modes> <available channel modes>”
005- RPL_TRACELINK =
“Try server <server>, port <port>” Sent to suggest an alternative server Often when the current server is full
200- RPL_TRACECONNECTING =
“Link <version & debug level> <destination> <next server> V<protocol version> <link uptime in seconds> <backstream sendq> <upstream sendq>”
201- RPL_TRACEHANDSHAKE =
“Try. <class> <server>”
202- RPL_TRACEUNKNOWN =
“H.S. <class> <server>”
203- RPL_TRACEOPERATOR =
“???? <class> [<client IP address in dot form>]”
204- RPL_TRACEUSER =
“Oper <class> <nick>”
205- RPL_TRACESERVER =
“User <class> <nick>”
206- RPL_TRACESERVICE =
“Serv <class> <int>S <int>C <server> <nick!user|*!*>@<host|server> V<protocol version>”
207- RPL_TRACENEWTYPE =
“Service <class> <name> <type> <active type>”
208- RPL_TRACECLASS =
“<newtype> 0 <client name>”
209- RPL_TRACERECONNECT =
“Class <class> <count>”
210- RPL_TRACELOG =
Unused.
261- RPL_TRACEEND =
“File <logfile> <debuglevel>”
262- RPL_STATSLINKINFO =
“<server name> <version & debug level> :End of TRACE”
211- RPL_STATSCOMMANDS =
“<linkname> <sendq> <sent messages> <sent Kbytes> <received messages> <received Kbytes> <time open>”
212- RPL_ENDOFSTATS =
“<command> <count> <byte count> <remote count>”
219- RPL_STATSUPTIME =
“<stats letter> :End of STATS report”
242- RPL_STATSOLINE =
“:server up %d days %d:%02d:%02d”
243- RPL_UMODEIS =
“O <hostmask> * <name>”
221- RPL_SERVLIST =
“<user mode string>”
234- RPL_SERVLISTEND =
“<name> <server> <mask> <type> <hopcount> <info>”
235- RPL_LUSERCLIENT =
“<mask> <type> :End of service listing”
251- RPL_LUSEROP =
“:There are <integer> users and <integer> services on <integer> servers”
252- RPL_LUSERUNKNOWN =
“<integer> :operator(s) online”
253- RPL_LUSERCHANNELS =
“<integer> :unknown connection(s)”
254- RPL_LUSERME =
“<integer> :channels formed”
255- RPL_ADMINME =
“:I have <integer> clients and <integer> servers”
256- RPL_ADMINLOC1 =
“<server> :Administrative info”
257- RPL_ADMINLOC2 =
“:<admin info>”
258- RPL_ADMINEMAIL =
“:<admin info>”
259- RPL_TRYAGAIN =
“:<admin info>”
263- RPL_USERHOST =
“<command> :Please wait a while and try again.”
302- RPL_ISON =
“:*1<reply> *( ” “ <reply> )”
303- RPL_AWAY =
“:*1<nick> *( ” “ <nick> )”
301- RPL_UNAWAY =
“<nick> :<away message>”
305- RPL_NOWAWAY =
“:You are no longer marked as being away”
306- RPL_WHOISUSER =
“:You have been marked as being away”
311- RPL_WHOISSERVER =
“<nick> <user> <host> * :<real name>”
312- RPL_WHOISOPERATOR =
“<nick> <server> :<server info>”
313- RPL_WHOISIDLE =
“<nick> :is an IRC operator”
317- RPL_ENDWHOIS =
“<nick> <integer> :seconds idle”
318- RPL_WHOISCHANNELS =
“<nick> :End of WHOIS list”
319- RPL_WHOWASUSER =
“<nick> :*( ( ”@“ / ”+“ ) <channel> ” “ )”
314- RPL_ENDWHOWAS =
“<nick> <user> <host> * :<real name>”
369- RPL_LISTSTART =
“<nick> :End of WHOWAS”
321- RPL_LIST =
Obsolete. Not used.
322- RPL_LISTEND =
“<channel> <# visible> :<topic>”
323- RPL_UNIQOPIS =
“:End of LIST”
325- RPL_CHANNELMODEIS =
<channel> <nickname>“
324- RPL_NOTOPIC =
“<channel> <mode> <mode params>”
331- RPL_TOPIC =
“<channel> :No topic is set”
332- RPL_INVITING =
“<channel> :<topic>”
341- RPL_SUMMONING =
“<channel> <nick>”
342- RPL_INVITELIST =
“<user> :Summoning user to IRC”
346- RPL_ENDOFINVITELIST =
“<channel> <invitemask>”
347- RPL_EXCEPTLIST =
“<channel> :End of channel invite list”
348- RPL_ENDOFEXCEPTLIST =
“<channel> <exceptionmask>”
349- RPL_VERSION =
“<channel> :End of channel exception list”
351- RPL_WHOREPLY =
“<version>.<debuglevel> <server> :<comments>”
352- RPL_ENDOFWHO =
“<channel> <user> <host> <server> <nick> ( ”H“ / ”G“ > [”*“] [ ( ”@“ / ”+“ ) ] :<hopcount> <real name>”
315- RPL_NAMREPLY =
“<name> :End of WHO list”
353- RPL_ENDOFNAMES =
( “=” / “*” / “@” ) <channel> :[ “@” / “+” ] <nick> *( “ ” [ “@” / “+” ] <nick> )
-
“@” is used for secret channels, “*” for private
channels, and “=” for others (public channels).
-
366- RPL_LINKS =
“<channel> :End of NAMES list”
364- RPL_ENDOFLINKS =
“<mask> <server> :<hopcount> <server info>”
365- RPL_BANLIST =
“<mask> :End of LINKS list”
367- RPL_ENDOFBANLIST =
“<channel> <banmask>”
368- RPL_INFO =
“<channel> :End of channel ban list”
371- RPL_ENFOFINFO =
“:<string>”
374- RPL_MOTDSTART =
“:End of INFO list”
375- RPL_MOTD =
“:- <server> Message of the day - ”
372- RPL_ENDOFMOTD =
“:- <text>”
376- RPL_YOUREOPER =
“:End of MOTD command”
381- RPL_REHASHING =
“:You are now an IRC operator”
382- RPL_YOURESERVICE =
“<config file> :Rehashing”
383- RPL_TIME =
“You are service <servicename>”
391- RPL_USERSSTART =
“<server> :<server’s local time>”
392- RPL_USERS =
“:UserID Terminal Host”
393- RPL_ENDOFUSERS =
“:<username> <ttyline> <hostname>”
394- RPL_NOUSERS =
“:End of users”
395- ERR_NOSUCHNICK =
“:Nobody logged in”
401- ERR_NOSUCHSERVER =
“<nickname> :No such nick/channel”
402- ERR_NOSUCHCHANNEL =
“<server name> :No such server”
403- ERR_CANNOTSENDTOCHAN =
“<channel name> :No such channel”
404- ERR_TOOMANYCHANNELS =
“<channel name> :Cannot send to channel”
405- ERR_WASNOSUCHNICK =
“<channel name> :You have joined too many channels”
406- ERR_TOOMANYTARGETS =
“<nickname> :There was no such nickname”
407- ERR_NOSUCHSERVICE =
<target> :<error code> recipients. <abort message>“
-
Returned to a client which is attempting to send a PRIVMSG/NOTICE using the user@host destination format and for a user@host which has several occurrences.
-
Returned to a client which trying to send a PRIVMSG/NOTICE to too many recipients.
-
Returned to a client which is attempting to JOIN a safe channel using the shortname when there are more than one such channel.
-
408- ERR_NOORIGIN =
“<service name> :No such service”
409- ERR_NORECIPIENT =
“:No origin specified”
-
PING or PONG message missing the originator parameter.
-
411- ERR_NOTEXTTOSEND =
“:No recipient given (<command>)”
412- ERR_NOTOPLEVEL =
“:No text to send”
413- ERR_WILDTOPLEVEL =
“<mask> :No toplevel domain specified”
414- ERR_BADMASK =
“<mask> :Wildcard in toplevel domain”
415- ERR_UNKNOWNCOMMAND =
“<mask> :Bad server/host mask”
421- ERR_NOMOTD =
“<command> :Unknown command”
422- ERR_NOADMININFO =
“:MOTD File is missing”
423- ERR_FILEERROR =
“<server> :No administrative info available”
424- ERR_NONICKNAMEGIVEN =
“:File error doing <file op> on <file>”
431- ERR_ERRONEUSNICKNAME =
“:No nickname given”
432- ERR_NICKNAMEINUSE =
“<nick> :Erroneous nickname”
433- ERR_NICKCOLLISION =
“<nick> :Nickname is already in use”
436- ERR_UNAVAILRESOURCE =
“<nick> :Nickname collision KILL from <user>@<host>”
437- ERR_USERNOTINCHANNEL =
“<nick/channel> :Nick/channel is temporarily unavailable”
441- ERR_NOTONCHANNEL =
“<nick> <channel> :They aren’t on that channel”
442- ERR_USERONCHANNEL =
“<channel> :You’re not on that channel”
443- ERR_NOLOGIN =
“<user> <channel> :is already on channel”
444- ERR_SUMMONDISABLED =
“<user> :User not logged in”
445- ERR_USERSDISABLED =
“:SUMMON has been disabled”
446- ERR_NOTREGISTERED =
“:USERS has been disabled”
451- ERR_NEEDMOREPARAMS =
“:You have not registered”
461- ERR_ALREADYREGISTRED =
“<command> :Not enough parameters”
462- ERR_NOPERMFORHOST =
“:Unauthorized command (already registered)”
463- ERR_PASSWDMISMATCH =
“:Your host isn’t among the privileged”
464- ERR_YOUREBANNEDCREEP =
“:Password incorrect”
465- ERR_YOUWILLBEBANNED =
“:You are banned from this server”
466- ERR_KEYSET =
Sent by a server to inform that access will soon be denied
467- ERR_CHANNELISFULL =
“<channel> :Channel key already set”
471- ERR_UNKNOWNMODE =
“<channel> :Cannot join channel (+l)”
472- ERR_INVITEONLYCHAN =
“<char> :is unknown mode char to me for <channel>”
473- ERR_BANNEDFROMCHAN =
“<channel> :Cannot join channel (+i)”
474- ERR_BADCHANNELKEY =
“<channel> :Cannot join channel (+b)”
475- ERR_BADCHANMASK =
“<channel> :Cannot join channel (+k)”
476- ERR_NOCHANMODES =
“<channel> :Bad Channel Mask”
477- ERR_BANLISTFULL =
“<channel> :Channel doesn’t support modes”
478- ERR_NOPRIVILEGES =
“<channel> <char> :Channel list is full”
481- ERR_CHANOPPRIVSNEEDED =
“:Permission Denied - You’re not an IRC operator”
482- ERR_CANTKILLSERVER =
“<channel> :You’re not channel operator”
483- ERR_RESTRICTED =
“:You can’t kill a server!”
484- ERR_UNIQOPPRIVSNEEDED =
“:Your connection is restricted!”
485- ERR_NOOPERHOST =
“:You’re not the original channel operator”
491- ERR_UMODEUNKNOWNFLAG =
“:No O-lines for your host”
501- ERR_USERSDONTMATCH =
“:Unknown MODE flag”
502- RPL_SERVICEINFO =
The following numerics are either:
1. no longer in use 2. reserved for future planned use 3. in current use but part of a non-generic 'feature' of the current IRC server 231- RPL_ENDOFSERVICES =
232- RPL_SERVICE =
233- RPL_NONE =
300- RPL_WHOISCHANOP =
316- RPL_KILLDONE =
361- RPL_CLOSING =
362- RPL_CLOSEEND =
363- RPL_INFOSTART =
373- RPL_MYPORTIS =
384- RPL_STATSCLINE =
213- RPL_STATSNLINE =
214- RPL_STATSILINE =
215- RPL_STATSKLINE =
216- RPL_STATSQLINE =
217- RPL_STATSYLINE =
218- RPL_STATSVLINE =
240- RPL_STATSLLINE =
241- RPL_STATSHLINE =
244- RPL_STATSSLINE =
244- RPL_STATSPING =
246- RPL_STATSBLINE =
247- RPL_STATSDLINE =
250- ERR_NOSERVICEHOST =
492