/[svn]/ircd-hybrid/trunk/include/numeric.h
ViewVC logotype

Contents of /ircd-hybrid/trunk/include/numeric.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6375 - (show annotations)
Fri Aug 21 10:34:16 2015 UTC (7 years, 5 months ago) by michael
File MIME type: text/x-csrc
File size: 8539 byte(s)
- Remove splitmode checking

1 /*
2 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 *
4 * Copyright (c) 1997-2015 ircd-hybrid development team
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 * USA
20 */
21
22 /*! \file numeric.h
23 * \brief Declarations of numeric replies.
24 * \version $Id$
25 */
26
27 #ifndef INCLUDED_numeric_h
28 #define INCLUDED_numeric_h
29
30
31 #define SND_EXPLICIT 0x40000000 /**< First argument is a pattern to use */
32
33 /*
34 * Reserve numerics 000-099 for server-client connections where the client
35 * is local to the server. If any server is passed a numeric in this range
36 * from another server then it is remapped to 100-199. -avalon
37 */
38
39 enum irc_numerics
40 {
41 RPL_WELCOME = 1,
42 RPL_YOURHOST = 2,
43 RPL_CREATED = 3,
44 RPL_MYINFO = 4,
45 RPL_ISUPPORT = 5,
46 RPL_REDIR = 10,
47 RPL_MAP = 15,
48 RPL_MAPMORE = 16,
49 RPL_MAPEND = 17,
50
51 /*
52 * Numeric replies from server commands.
53 * These are currently in the range 200-399.
54 */
55 RPL_TRACELINK = 200,
56 RPL_TRACECONNECTING = 201,
57 RPL_TRACEHANDSHAKE = 202,
58 RPL_TRACEUNKNOWN = 203,
59 RPL_TRACEOPERATOR = 204,
60 RPL_TRACEUSER = 205,
61 RPL_TRACESERVER = 206,
62 RPL_TRACENEWTYPE = 208,
63 RPL_TRACECLASS = 209,
64 RPL_STATSLINKINFO = 211,
65 RPL_STATSCOMMANDS = 212,
66 RPL_STATSCLINE = 213,
67 RPL_STATSILINE = 215,
68 RPL_STATSKLINE = 216,
69 RPL_STATSQLINE = 217,
70 RPL_STATSYLINE = 218,
71 RPL_ENDOFSTATS = 219,
72
73 /*
74 * Note ircu uses 217 for STATSPLINE frip. conflict
75 * as RPL_STATSQLINE was used in old 2.8 for Q line
76 * I'm going to steal 220 for now *sigh* -Dianora
77 */
78 RPL_STATSPLINE = 220,
79 RPL_UMODEIS = 221,
80 RPL_STATSDLINE = 225,
81 RPL_STATSALINE = 226,
82 RPL_STATSLLINE = 241,
83 RPL_STATSUPTIME = 242,
84 RPL_STATSOLINE = 243,
85 RPL_STATSHLINE = 244,
86 RPL_STATSTLINE = 245,
87 RPL_STATSSERVICE = 246,
88 RPL_STATSXLINE = 247,
89 RPL_STATSULINE = 248,
90 RPL_STATSDEBUG = 249,
91 RPL_STATSCONN = 250,
92 RPL_LUSERCLIENT = 251,
93 RPL_LUSEROP = 252,
94 RPL_LUSERUNKNOWN = 253,
95 RPL_LUSERCHANNELS = 254,
96 RPL_LUSERME = 255,
97 RPL_ADMINME = 256,
98 RPL_ADMINLOC1 = 257,
99 RPL_ADMINLOC2 = 258,
100 RPL_ADMINEMAIL = 259,
101 RPL_ENDOFTRACE = 262,
102 RPL_LOAD2HI = 263,
103 RPL_LOCALUSERS = 265,
104 RPL_GLOBALUSERS = 266,
105 RPL_WHOISCERTFP = 276,
106 RPL_ACCEPTLIST = 281,
107 RPL_ENDOFACCEPT = 282,
108 RPL_AWAY = 301,
109 RPL_USERHOST = 302,
110 RPL_ISON = 303,
111 RPL_UNAWAY = 305,
112 RPL_NOWAWAY = 306,
113 RPL_WHOISREGNICK = 307,
114 RPL_WHOISUSER = 311,
115 RPL_WHOISSERVER = 312,
116 RPL_WHOISOPERATOR = 313,
117 RPL_WHOWASUSER = 314,
118 RPL_ENDOFWHO = 315,
119 RPL_WHOISIDLE = 317,
120 RPL_ENDOFWHOIS = 318,
121 RPL_WHOISCHANNELS = 319,
122 RPL_LISTSTART = 321,
123 RPL_LIST = 322,
124 RPL_LISTEND = 323,
125 RPL_CHANNELMODEIS = 324,
126 RPL_CREATIONTIME = 329,
127 RPL_WHOISACCOUNT = 330,
128 RPL_NOTOPIC = 331,
129 RPL_TOPIC = 332,
130 RPL_TOPICWHOTIME = 333,
131 RPL_WHOISTEXT = 335,
132 RPL_INVITELIST = 336,
133 RPL_ENDOFINVITELIST = 337,
134 RPL_WHOISACTUALLY = 338,
135 RPL_INVITING = 341,
136 RPL_INVEXLIST = 346,
137 RPL_ENDOFINVEXLIST = 347,
138 RPL_EXCEPTLIST = 348,
139 RPL_ENDOFEXCEPTLIST = 349,
140 RPL_VERSION = 351,
141 RPL_WHOREPLY = 352,
142 RPL_NAMREPLY = 353,
143 RPL_CLOSING = 362,
144 RPL_CLOSEEND = 363,
145 RPL_LINKS = 364,
146 RPL_ENDOFLINKS = 365,
147 RPL_ENDOFNAMES = 366,
148 RPL_BANLIST = 367,
149 RPL_ENDOFBANLIST = 368,
150 RPL_ENDOFWHOWAS = 369,
151 RPL_INFO = 371,
152 RPL_MOTD = 372,
153 RPL_INFOSTART = 373,
154 RPL_ENDOFINFO = 374,
155 RPL_MOTDSTART = 375,
156 RPL_ENDOFMOTD = 376,
157 RPL_WHOISMODES = 379,
158 RPL_YOUREOPER = 381,
159 RPL_REHASHING = 382,
160 RPL_RSACHALLENGE = 386,
161 RPL_TIME = 391,
162 RPL_VISIBLEHOST = 396,
163
164 /*
165 * Errors are in the range from 400-599 currently and are grouped by what
166 * commands they come from.
167 */
168 ERR_NOSUCHNICK = 401,
169 ERR_NOSUCHSERVER = 402,
170 ERR_NOSUCHCHANNEL = 403,
171 ERR_CANNOTSENDTOCHAN = 404,
172 ERR_TOOMANYCHANNELS = 405,
173 ERR_WASNOSUCHNICK = 406,
174 ERR_TOOMANYTARGETS = 407,
175 ERR_NOCTRLSONCHAN = 408,
176 ERR_NOORIGIN = 409,
177 ERR_INVALIDCAPCMD = 410,
178 ERR_NORECIPIENT = 411,
179 ERR_NOTEXTTOSEND = 412,
180 ERR_NOTOPLEVEL = 413,
181 ERR_WILDTOPLEVEL = 414,
182 ERR_UNKNOWNCOMMAND = 421,
183 ERR_NOMOTD = 422,
184 ERR_NOADMININFO = 423,
185 ERR_TOOMANYAWAY = 429,
186 ERR_NONICKNAMEGIVEN = 431,
187 ERR_ERRONEUSNICKNAME = 432,
188 ERR_NICKNAMEINUSE = 433,
189 ERR_NICKCOLLISION = 436,
190 ERR_NICKTOOFAST = 438,
191 ERR_SERVICESDOWN = 440,
192 ERR_USERNOTINCHANNEL = 441,
193 ERR_NOTONCHANNEL = 442,
194 ERR_USERONCHANNEL = 443,
195 ERR_NOTREGISTERED = 451,
196 ERR_ACCEPTFULL = 456,
197 ERR_ACCEPTEXIST = 457,
198 ERR_ACCEPTNOT = 458,
199 ERR_NEEDMOREPARAMS = 461,
200 ERR_ALREADYREGISTRED = 462,
201 ERR_PASSWDMISMATCH = 464,
202 ERR_YOUREBANNEDCREEP = 465,
203 ERR_ONLYSERVERSCANCHANGE = 468,
204 ERR_CHANNELISFULL = 471,
205 ERR_UNKNOWNMODE = 472,
206 ERR_INVITEONLYCHAN = 473,
207 ERR_BANNEDFROMCHAN = 474,
208 ERR_BADCHANNELKEY = 475,
209 ERR_NEEDREGGEDNICK = 477,
210 ERR_BANLISTFULL = 478,
211 ERR_BADCHANNAME = 479,
212 ERR_NOPRIVILEGES = 481,
213 ERR_CHANOPRIVSNEEDED = 482,
214 ERR_CANTKILLSERVER = 483,
215 ERR_CHANBANREASON = 485,
216 ERR_NONONREG = 486,
217 ERR_SSLONLYCHAN = 489,
218 ERR_NOOPERHOST = 491,
219 ERR_NOCTCP = 492,
220 ERR_UMODEUNKNOWNFLAG = 501,
221 ERR_USERSDONTMATCH = 502,
222 ERR_USERNOTONSERV = 504,
223 ERR_TOOMANYWATCH = 512,
224 ERR_WRONGPONG = 513,
225 ERR_OPERONLYCHAN = 520,
226 ERR_LISTSYNTAX = 521,
227 ERR_WHOLIMEXCEED = 523,
228 ERR_HELPNOTFOUND = 524,
229 RPL_LOGON = 600,
230 RPL_LOGOFF = 601,
231 RPL_WATCHOFF = 602,
232 RPL_WATCHSTAT = 603,
233 RPL_NOWON = 604,
234 RPL_NOWOFF = 605,
235 RPL_WATCHLIST = 606,
236 RPL_ENDOFWATCHLIST = 607,
237 RPL_WHOISSECURE = 671,
238 RPL_MODLIST = 702,
239 RPL_ENDOFMODLIST = 703,
240 RPL_HELPSTART = 704,
241 RPL_HELPTXT = 705,
242 RPL_ENDOFHELP = 706,
243 RPL_ETRACE = 709,
244 RPL_KNOCK = 710,
245 RPL_KNOCKDLVR = 711,
246 ERR_TOOMANYKNOCK = 712,
247 ERR_CHANOPEN = 713,
248 ERR_KNOCKONCHAN = 714,
249 ERR_TOOMANYINVITE = 715,
250 RPL_TARGUMODEG = 716,
251 RPL_TARGNOTIFY = 717,
252 RPL_UMODEGMSG = 718,
253 ERR_NOPRIVS = 723,
254 ERR_LAST_ERR_MSG = 999
255 };
256
257 extern const char *numeric_form(enum irc_numerics);
258 #endif /* INCLUDED_numeric_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.30