]>
jfr.im git - solanum.git/blob - include/numeric.h
2 * ircd-ratbox: A slightly useful ircd.
3 * numeric.h: A header for the numeric functions.
5 * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
6 * Copyright (C) 1996-2002 Hybrid Development Team
7 * Copyright (C) 2002-2004 ircd-ratbox development team
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
25 #ifndef INCLUDED_numeric_h
26 #define INCLUDED_numeric_h
32 * Reserve numerics 000-099 for server-client connections where the client
33 * is local to the server. If any server is passed a numeric in this range
34 * from another server then it is remapped to 100-199. -avalon
37 #define RPL_YOURHOST 2
40 #define RPL_ISUPPORT 5
45 #define RPL_MAP 15 /* Undernet extension */
46 #define RPL_MAPMORE 16 /* Undernet extension */
47 #define RPL_MAPEND 17 /* Undernet extension */
48 #define RPL_SAVENICK 43 /* From ircnet */
51 * Numeric replies from server commands.
52 * These are currently in the range 200-399.
54 #define RPL_TRACELINK 200
55 #define RPL_TRACECONNECTING 201
56 #define RPL_TRACEHANDSHAKE 202
57 #define RPL_TRACEUNKNOWN 203
58 #define RPL_TRACEOPERATOR 204
59 #define RPL_TRACEUSER 205
60 #define RPL_TRACESERVER 206
61 #define RPL_TRACENEWTYPE 208
62 #define RPL_TRACECLASS 209
64 #define RPL_STATSLINKINFO 211
65 #define RPL_STATSCOMMANDS 212
66 #define RPL_STATSCLINE 213
67 #define RPL_STATSNLINE 214
68 #define RPL_STATSILINE 215
69 #define RPL_STATSKLINE 216
70 #define RPL_STATSQLINE 217
71 #define RPL_STATSYLINE 218
72 #define RPL_ENDOFSTATS 219
73 /* note ircu uses 217 for STATSPLINE frip. conflict
74 * as RPL_STATSQLINE was used in old 2.8 for Q line
75 * I'm going to steal 220 for now *sigh*
78 #define RPL_STATSPLINE 220
79 #define RPL_UMODEIS 221
81 #define RPL_STATSFLINE 224
82 #define RPL_STATSDLINE 225
84 #define RPL_SERVLIST 234
85 #define RPL_SERVLISTEND 235
87 #define RPL_STATSLLINE 241
88 #define RPL_STATSUPTIME 242
89 #define RPL_STATSOLINE 243
90 #define RPL_STATSHLINE 244
91 /* 245 No longer used in ircd-ratbox */
92 #define RPL_STATSSLINE 245
93 #define RPL_STATSXLINE 247
94 #define RPL_STATSULINE 248
95 #define RPL_STATSDEBUG 249
96 #define RPL_STATSCONN 250
97 #define RPL_LUSERCLIENT 251
98 #define RPL_LUSEROP 252
99 #define RPL_LUSERUNKNOWN 253
100 #define RPL_LUSERCHANNELS 254
101 #define RPL_LUSERME 255
102 #define RPL_ADMINME 256
103 #define RPL_ADMINLOC1 257
104 #define RPL_ADMINLOC2 258
105 #define RPL_ADMINEMAIL 259
107 #define RPL_TRACELOG 261
108 #define RPL_ENDOFTRACE 262
109 #define RPL_LOAD2HI 263
111 #define RPL_LOCALUSERS 265
112 #define RPL_GLOBALUSERS 266
114 #define RPL_PRIVS 270 /* from ircu */
116 #define RPL_WHOISCERTFP 276 /* from oftc-hybrid */
118 #define RPL_ACCEPTLIST 281
119 #define RPL_ENDOFACCEPT 282
121 /* numeric_replies */
125 #define RPL_USERHOST 302
128 #define RPL_UNAWAY 305
129 #define RPL_NOWAWAY 306
131 /* RPL_WHOISADMIN 308 -- hybrid */
133 #define RPL_WHOISHELPOP 310
134 #define RPL_WHOISUSER 311
135 #define RPL_WHOISSERVER 312
136 #define RPL_WHOISOPERATOR 313
138 #define RPL_WHOWASUSER 314
139 /* rpl_endofwho below (315) */
140 #define RPL_ENDOFWHOWAS 369
142 #define RPL_WHOISCHANOP 316 /* redundant and not needed but reserved */
143 #define RPL_WHOISIDLE 317
145 #define RPL_ENDOFWHOIS 318
146 #define RPL_WHOISCHANNELS 319
147 #define RPL_WHOISSPECIAL 320
149 #define RPL_LISTSTART 321
151 #define RPL_LISTEND 323
152 #define RPL_CHANNELMODEIS 324
153 #define RPL_CHANNELMLOCK 325 /* from sorircd 1.3 --nenolod */
155 #define RPL_CHANNELURL 328 /* to be sent by services */
157 #define RPL_CREATIONTIME 329
158 #define RPL_WHOISLOGGEDIN 330
160 #define RPL_NOTOPIC 331
161 #define RPL_TOPIC 332
162 #define RPL_TOPICWHOTIME 333
163 #define RPL_WHOISTEXT 337
164 #define RPL_WHOISACTUALLY 338
166 #define RPL_INVITING 341
167 #define RPL_SUMMONING 342
169 #define RPL_INVITELIST 346
170 #define RPL_ENDOFINVITELIST 347
171 #define RPL_EXCEPTLIST 348
172 #define RPL_ENDOFEXCEPTLIST 349
174 #define RPL_VERSION 351
176 #define RPL_WHOREPLY 352
177 #define RPL_WHOSPCRPL 354 /* from ircu -- jilles */
178 #define RPL_ENDOFWHO 315
179 #define RPL_NAMREPLY 353
180 #define RPL_WHOWASREAL 360
181 #define RPL_ENDOFNAMES 366
183 #define RPL_KILLDONE 361
184 #define RPL_CLOSING 362
185 #define RPL_CLOSEEND 363
186 #define RPL_LINKS 364
187 #define RPL_ENDOFLINKS 365
188 /* rpl_endofnames above (366) */
189 #define RPL_BANLIST 367
190 #define RPL_ENDOFBANLIST 368
191 /* rpl_endofwhowas above (369) */
195 #define RPL_INFOSTART 373
196 #define RPL_ENDOFINFO 374
197 #define RPL_MOTDSTART 375
198 #define RPL_ENDOFMOTD 376
199 #define RPL_WHOISHOST 378
201 #define RPL_YOUREOPER 381
202 #define RPL_REHASHING 382
203 #define RPL_MYPORTIS 384
204 #define RPL_NOTOPERANYMORE 385
205 #define RPL_RSACHALLENGE 386
208 #define RPL_USERSSTART 392
209 #define RPL_USERS 393
210 #define RPL_ENDOFUSERS 394
211 #define RPL_NOUSERS 395
212 #define RPL_HOSTHIDDEN 396 /* from ircu -- jilles */
215 * Errors are in the range from 400-599 currently and are grouped by what
216 * commands they come from.
218 #define ERR_NOSUCHNICK 401
219 #define ERR_NOSUCHSERVER 402
220 #define ERR_NOSUCHCHANNEL 403
221 #define ERR_CANNOTSENDTOCHAN 404
222 #define ERR_TOOMANYCHANNELS 405
223 #define ERR_WASNOSUCHNICK 406
224 #define ERR_TOOMANYTARGETS 407
225 #define ERR_NOORIGIN 409
227 #define ERR_INVALIDCAPCMD 410
229 #define ERR_NORECIPIENT 411
230 #define ERR_NOTEXTTOSEND 412
231 #define ERR_NOTOPLEVEL 413
232 #define ERR_WILDTOPLEVEL 414
234 #define ERR_TOOMANYMATCHES 416
236 #define ERR_UNKNOWNCOMMAND 421
237 #define ERR_NOMOTD 422
238 #define ERR_NOADMININFO 423
239 #define ERR_FILEERROR 424
241 #define ERR_NONICKNAMEGIVEN 431
242 #define ERR_ERRONEUSNICKNAME 432
243 #define ERR_NICKNAMEINUSE 433
244 #define ERR_BANNICKCHANGE 435 /* bahamut's ERR_BANONCHAN -- jilles */
245 #define ERR_NICKCOLLISION 436
246 #define ERR_UNAVAILRESOURCE 437
247 #define ERR_NICKTOOFAST 438 /* We did it first Undernet! ;) db */
249 #define ERR_SERVICESDOWN 440
250 #define ERR_USERNOTINCHANNEL 441
251 #define ERR_NOTONCHANNEL 442
252 #define ERR_USERONCHANNEL 443
253 #define ERR_NOLOGIN 444
254 #define ERR_SUMMONDISABLED 445
255 #define ERR_USERSDISABLED 446
257 #define ERR_NOTREGISTERED 451
259 #define ERR_ACCEPTFULL 456
260 #define ERR_ACCEPTEXIST 457
261 #define ERR_ACCEPTNOT 458
263 #define ERR_NEEDMOREPARAMS 461
264 #define ERR_ALREADYREGISTRED 462
265 #define ERR_NOPERMFORHOST 463
266 #define ERR_PASSWDMISMATCH 464
267 #define ERR_YOUREBANNEDCREEP 465
268 #define ERR_YOUWILLBEBANNED 466
269 #define ERR_KEYSET 467
271 #define ERR_LINKCHANNEL 470
272 #define ERR_CHANNELISFULL 471
273 #define ERR_UNKNOWNMODE 472
274 #define ERR_INVITEONLYCHAN 473
275 #define ERR_BANNEDFROMCHAN 474
276 #define ERR_BADCHANNELKEY 475
277 #define ERR_BADCHANMASK 476
278 #define ERR_NEEDREGGEDNICK 477
279 #define ERR_BANLISTFULL 478 /* I stole the numeric from ircu -db */
280 #define ERR_BADCHANNAME 479
282 #define ERR_THROTTLE 480
284 #define ERR_NOPRIVILEGES 481
285 #define ERR_CHANOPRIVSNEEDED 482
286 #define ERR_CANTKILLSERVER 483
287 #define ERR_ISCHANSERVICE 484
288 /* #define ERR_RESTRICTED 484 - hyb derived, no longer here */
289 #define ERR_BANNEDNICK 485
290 #define ERR_NONONREG 486 /* bahamut; aka ERR_ACCOUNTONLY asuka -- jilles */
292 #define ERR_VOICENEEDED 489
294 #define ERR_NOOPERHOST 491
296 #define ERR_OWNMODE 494 /* from bahamut -- jilles */
298 #define ERR_UMODEUNKNOWNFLAG 501
299 #define ERR_USERSDONTMATCH 502
301 #define ERR_GHOSTEDCLIENT 503
303 #define ERR_USERNOTONSERV 504
305 /* #define ERR_LAST_ERR_MSG 505
308 #define ERR_WRONGPONG 513
310 #define ERR_DISABLED 517 /* from ircu */
312 #define ERR_HELPNOTFOUND 524
314 #define RPL_STARTTLS 670 /* ircv3.atheme.org tls-3.1 */
315 #define RPL_WHOISSECURE 671 /* Unreal3.2 --nenolod */
317 #define ERR_STARTTLS 691 /* ircv3.atheme.org tls-3.2 */
319 #define RPL_MODLIST 702
320 #define RPL_ENDOFMODLIST 703
322 #define RPL_HELPSTART 704
323 #define RPL_HELPTXT 705
324 #define RPL_ENDOFHELP 706
326 #define ERR_TARGCHANGE 707
328 #define RPL_ETRACEFULL 708
329 #define RPL_ETRACE 709
331 #define RPL_KNOCK 710
332 #define RPL_KNOCKDLVR 711
334 #define ERR_TOOMANYKNOCK 712
335 #define ERR_CHANOPEN 713
336 #define ERR_KNOCKONCHAN 714
337 #define ERR_KNOCKDISABLED 715
339 #define ERR_TARGUMODEG 716
340 #define RPL_TARGNOTIFY 717
341 #define RPL_UMODEGMSG 718
343 #define RPL_OMOTDSTART 720
344 #define RPL_OMOTD 721
345 #define RPL_ENDOFOMOTD 722
347 #define ERR_NOPRIVS 723
349 #define RPL_TESTMASK 724
350 #define RPL_TESTLINE 725
351 #define RPL_NOTESTLINE 726
352 #define RPL_TESTMASKGECOS 727
354 #define RPL_QUIETLIST 728
355 #define RPL_ENDOFQUIETLIST 729
357 #define RPL_MONONLINE 730
358 #define RPL_MONOFFLINE 731
359 #define RPL_MONLIST 732
360 #define RPL_ENDOFMONLIST 733
361 #define ERR_MONLISTFULL 734
363 #define RPL_RSACHALLENGE2 740
364 #define RPL_ENDOFRSACHALLENGE2 741
366 #define ERR_MLOCKRESTRICTED 742
367 #define ERR_INVALIDBAN 743
369 #define ERR_TOPICLOCK 744 /* inspircd */
371 #define RPL_SCANMATCHED 750
372 #define RPL_SCANUMODES 751
374 #define RPL_LOGGEDIN 900
375 #define RPL_LOGGEDOUT 901
376 #define ERR_NICKLOCKED 902
378 #define RPL_SASLSUCCESS 903
379 #define ERR_SASLFAIL 904
380 #define ERR_SASLTOOLONG 905
381 #define ERR_SASLABORTED 906
382 #define ERR_SASLALREADY 907
383 #define RPL_SASLMECHS 908
385 #define ERR_LAST_ERR_MSG 999
387 #endif /* INCLUDED_numeric_h */