1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2008 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
15 * This file is aimed providing a string that is easier to use than using the numeric
18 * Thanks to Darom, jackmcbarn and Brain for suggesting and discussing this.
20 * Please note that the list may not be exhaustive, it'll be done when I have
21 * nothing better to do with my time. -- w00t (jul 13, 2008)
27 * Reply range of numerics.
29 RPL_WELCOME = 1, // not RFC, extremely common though
30 RPL_YOURHOSTIS = 2, // not RFC, extremely common though
31 RPL_SERVERCREATED = 3, // not RFC, extremely common though
32 RPL_SERVERVERSION = 4, // not RFC, extremely common though
33 RPL_ISUPPORT = 5, // not RFC, extremely common though
35 RPL_MAP = 6, // unrealircd
36 RPL_ENDMAP = 7, // unrealircd
37 RPL_SNOMASKIS = 8, // unrealircd
39 RPL_YOURUUID = 42, // taken from ircnet
42 RPL_RULES = 232, // unrealircd
47 RPL_MAPUSERS = 270, // insp-specific(?)
53 RPL_RULESTART = 308, // unrealircd
54 RPL_RULESEND = 309, // unrealircd
55 RPL_CHANNELMODEIS = 324,
56 RPL_CHANNELCREATED = 329, // ???
58 RPL_TOPICTIME = 333, // not RFC, extremely common though
61 RPL_INVITELIST = 346, // insp-specific (stolen from ircu)
62 RPL_ENDOFINVITELIST = 347, // insp-specific (stolen from ircu)
76 RPL_YOURDISPLAYEDHOST = 396, // from charybdis/etc, common convention
79 * Error range of numerics.
82 ERR_NOSUCHSERVER = 402,
83 ERR_NOSUCHCHANNEL = 403, // used to indicate an invalid channel name also, so don't rely on RFC text (don't do that anyway!)
84 ERR_CANNOTSENDTOCHAN = 404,
85 ERR_TOOMANYCHANNELS = 405,
86 ERR_INVALIDCAPSUBCOMMAND = 410, // ratbox/charybdis(?)
87 ERR_UNKNOWNCOMMAND = 421,
89 ERR_NORULES = 434, // unrealircd
90 ERR_USERNOTINCHANNEL = 441,
91 ERR_NOTONCHANNEL = 442,
92 ERR_USERONCHANNEL = 443,
93 ERR_CANTCHANGENICK = 447, // unrealircd, probably
94 ERR_NOTREGISTERED = 451,
95 ERR_NEEDMOREPARAMS = 461,
96 ERR_ALREADYREGISTERED = 462,
99 * A quick side-rant about the next group of numerics..
100 * There are clients out there that like to assume that just because they don't recieve a numeric
101 * they know, that they have joined the channel.
103 * If IRC was at all properly standardised, this may even be a semi-acceptable assumption to make,
104 * but that's not the case as we all know, so IT IS NOT ACCEPTABLE. Especially for Insp users, where
105 * differing modules MAY potentially choose to block joins and send NOTICEs or other text to the user
109 * DON'T MAKE YOUR CLIENT ASSUME YOU JOINED UNLESS YOU RECIEVE A JOIN WITH YOUR DAMN NICK ON IT.
112 * -- A message from the IRC group for coder sanity, and w00t
114 ERR_BADCHANNELKEY = 475,
115 ERR_INVITEONLYCHAN = 473,
116 ERR_CHANNELISFULL = 471,
117 ERR_BANNEDFROMCHAN = 474,
119 ERR_NOPRIVILEGES = 481, // rfc, beware though, we use this for other things opers may not do also
120 ERR_CHANOPRIVSNEEDED = 482, // rfc, beware though, we use this for other things like trying to kick a uline
122 ERR_ALLMUSTSSL = 490, // unrealircd
123 ERR_NOCTCPALLOWED = 492, // XXX: bzzzz. 1459 defines this as ERR_NOSERVICEHOST, research it more and perhaps change this! (ERR_CANNOTSENDTOCHAN?)
124 // wtf, we also use this for m_noinvite. UGLY!
125 ERR_DELAYREJOIN = 495, // insp-specific, XXX: we should use 'resource temporarily unavailable' from ircnet/ratbox or whatever
126 ERR_UNKNOWNSNOMASK = 501, // insp-specific
127 ERR_USERSDONTMATCH = 502,
128 ERR_CANTJOINOPERSONLY = 520, // unrealircd, but crap to have so many numerics for cant join..
129 ERR_CANTSENDTOUSER = 531, // ???
131 RPL_COMMANDS = 702, // insp-specific
132 RPL_COMMANDSEND = 703, // insp-specific
134 ERR_WORDFILTERED = 936, // insp-specific, would be nice if we could get rid of this..
135 ERR_CANTUNLOADMODULE = 972, // insp-specific
136 RPL_UNLOADEDMODULE = 973, // insp-specific
137 ERR_CANTLOADMODULE = 974, // insp-specific
138 RPL_LOADEDMODULE = 975 // insp-specific