]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | /* |
2 | * ircd-ratbox: A slightly useful ircd. | |
3 | * numeric.h: A header for the numeric functions. | |
4 | * | |
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 | |
8 | * | |
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. | |
13 | * | |
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. | |
18 | * | |
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 | |
22 | * USA | |
23 | * | |
24 | * $Id: numeric.h 1793 2006-08-04 19:56:03Z jilles $ | |
25 | */ | |
26 | ||
27 | #ifndef INCLUDED_numeric_h | |
28 | #define INCLUDED_numeric_h | |
29 | ||
30 | #include "config.h" | |
31 | ||
32 | /* | |
33 | * form_str - return a format string for a message number | |
34 | * messages are defined below | |
35 | */ | |
36 | extern const char *form_str(int); | |
37 | ||
38 | /* | |
39 | * Reserve numerics 000-099 for server-client connections where the client | |
40 | * is local to the server. If any server is passed a numeric in this range | |
41 | * from another server then it is remapped to 100-199. -avalon | |
42 | */ | |
43 | #define RPL_WELCOME 001 | |
44 | #define RPL_YOURHOST 002 | |
45 | #define RPL_CREATED 003 | |
46 | #define RPL_MYINFO 004 | |
47 | #define RPL_ISUPPORT 005 | |
48 | ||
49 | #define RPL_SNOMASK 8 | |
50 | ||
51 | #define RPL_REDIR 10 | |
52 | #define RPL_MAP 15 /* Undernet extension */ | |
53 | #define RPL_MAPMORE 16 /* Undernet extension */ | |
54 | #define RPL_MAPEND 17 /* Undernet extension */ | |
55 | #define RPL_SAVENICK 43 /* From ircnet */ | |
56 | ||
57 | /* | |
58 | * Numeric replies from server commands. | |
59 | * These are currently in the range 200-399. | |
60 | */ | |
61 | #define RPL_TRACELINK 200 | |
62 | #define RPL_TRACECONNECTING 201 | |
63 | #define RPL_TRACEHANDSHAKE 202 | |
64 | #define RPL_TRACEUNKNOWN 203 | |
65 | #define RPL_TRACEOPERATOR 204 | |
66 | #define RPL_TRACEUSER 205 | |
67 | #define RPL_TRACESERVER 206 | |
68 | #define RPL_TRACENEWTYPE 208 | |
69 | #define RPL_TRACECLASS 209 | |
70 | ||
71 | #define RPL_STATSLINKINFO 211 | |
72 | #define RPL_STATSCOMMANDS 212 | |
73 | #define RPL_STATSCLINE 213 | |
74 | #define RPL_STATSNLINE 214 | |
75 | #define RPL_STATSILINE 215 | |
76 | #define RPL_STATSKLINE 216 | |
77 | #define RPL_STATSQLINE 217 | |
78 | #define RPL_STATSYLINE 218 | |
79 | #define RPL_ENDOFSTATS 219 | |
80 | /* note ircu uses 217 for STATSPLINE frip. conflict | |
81 | * as RPL_STATSQLINE was used in old 2.8 for Q line | |
82 | * I'm going to steal 220 for now *sigh* | |
83 | * -Dianora | |
84 | */ | |
85 | #define RPL_STATSPLINE 220 | |
86 | #define RPL_UMODEIS 221 | |
87 | ||
88 | #define RPL_STATSFLINE 224 | |
89 | #define RPL_STATSDLINE 225 | |
90 | ||
91 | #define RPL_SERVLIST 234 | |
92 | #define RPL_SERVLISTEND 235 | |
93 | ||
94 | #define RPL_STATSLLINE 241 | |
95 | #define RPL_STATSUPTIME 242 | |
96 | #define RPL_STATSOLINE 243 | |
97 | #define RPL_STATSHLINE 244 | |
98 | /* 245 No longer used in ircd-ratbox */ | |
99 | #define RPL_STATSSLINE 245 | |
100 | #define RPL_STATSXLINE 247 | |
101 | #define RPL_STATSULINE 248 | |
102 | #define RPL_STATSDEBUG 249 | |
103 | #define RPL_STATSCONN 250 | |
104 | #define RPL_LUSERCLIENT 251 | |
105 | #define RPL_LUSEROP 252 | |
106 | #define RPL_LUSERUNKNOWN 253 | |
107 | #define RPL_LUSERCHANNELS 254 | |
108 | #define RPL_LUSERME 255 | |
109 | #define RPL_ADMINME 256 | |
110 | #define RPL_ADMINLOC1 257 | |
111 | #define RPL_ADMINLOC2 258 | |
112 | #define RPL_ADMINEMAIL 259 | |
113 | ||
114 | #define RPL_TRACELOG 261 | |
115 | #define RPL_ENDOFTRACE 262 | |
116 | #define RPL_LOAD2HI 263 | |
117 | ||
118 | #define RPL_LOCALUSERS 265 | |
119 | #define RPL_GLOBALUSERS 266 | |
120 | ||
7b7e1640 JT |
121 | #define RPL_PRIVS 270 /* from ircu */ |
122 | ||
8eda114a JT |
123 | #define RPL_WHOISCERTFP 276 /* from oftc-hybrid */ |
124 | ||
212380e3 AC |
125 | #define RPL_ACCEPTLIST 281 |
126 | #define RPL_ENDOFACCEPT 282 | |
127 | ||
128 | /* numeric_replies */ | |
129 | ||
130 | #define RPL_NONE 300 | |
131 | #define RPL_AWAY 301 | |
132 | #define RPL_USERHOST 302 | |
133 | #define RPL_ISON 303 | |
134 | #define RPL_TEXT 304 | |
135 | #define RPL_UNAWAY 305 | |
136 | #define RPL_NOWAWAY 306 | |
137 | ||
138 | /* RPL_WHOISADMIN 308 -- hybrid */ | |
139 | ||
140 | #define RPL_WHOISUSER 311 | |
141 | #define RPL_WHOISSERVER 312 | |
142 | #define RPL_WHOISOPERATOR 313 | |
143 | ||
144 | #define RPL_WHOWASUSER 314 | |
145 | /* rpl_endofwho below (315) */ | |
146 | #define RPL_ENDOFWHOWAS 369 | |
147 | ||
148 | #define RPL_WHOISCHANOP 316 /* redundant and not needed but reserved */ | |
149 | #define RPL_WHOISIDLE 317 | |
150 | ||
151 | #define RPL_ENDOFWHOIS 318 | |
152 | #define RPL_WHOISCHANNELS 319 | |
153 | ||
154 | #define RPL_LISTSTART 321 | |
155 | #define RPL_LIST 322 | |
156 | #define RPL_LISTEND 323 | |
157 | #define RPL_CHANNELMODEIS 324 | |
dd0f1f5b | 158 | #define RPL_CHANNELMLOCK 325 /* from sorircd 1.3 --nenolod */ |
212380e3 | 159 | |
8c59a840 JT |
160 | #define RPL_CHANNELURL 328 /* to be sent by services */ |
161 | ||
212380e3 AC |
162 | #define RPL_CREATIONTIME 329 |
163 | #define RPL_WHOISLOGGEDIN 330 | |
164 | ||
165 | #define RPL_NOTOPIC 331 | |
166 | #define RPL_TOPIC 332 | |
167 | #define RPL_TOPICWHOTIME 333 | |
168 | #define RPL_WHOISACTUALLY 338 | |
169 | ||
170 | #define RPL_INVITING 341 | |
171 | #define RPL_SUMMONING 342 | |
172 | ||
173 | #define RPL_INVITELIST 346 | |
174 | #define RPL_ENDOFINVITELIST 347 | |
175 | #define RPL_EXCEPTLIST 348 | |
176 | #define RPL_ENDOFEXCEPTLIST 349 | |
177 | ||
178 | #define RPL_VERSION 351 | |
179 | ||
180 | #define RPL_WHOREPLY 352 | |
48957a49 | 181 | #define RPL_WHOSPCRPL 354 /* from ircu -- jilles */ |
212380e3 AC |
182 | #define RPL_ENDOFWHO 315 |
183 | #define RPL_NAMREPLY 353 | |
184 | #define RPL_WHOWASREAL 360 | |
185 | #define RPL_ENDOFNAMES 366 | |
186 | ||
187 | #define RPL_KILLDONE 361 | |
188 | #define RPL_CLOSING 362 | |
189 | #define RPL_CLOSEEND 363 | |
190 | #define RPL_LINKS 364 | |
191 | #define RPL_ENDOFLINKS 365 | |
192 | /* rpl_endofnames above (366) */ | |
193 | #define RPL_BANLIST 367 | |
194 | #define RPL_ENDOFBANLIST 368 | |
195 | /* rpl_endofwhowas above (369) */ | |
196 | ||
197 | #define RPL_INFO 371 | |
198 | #define RPL_MOTD 372 | |
199 | #define RPL_INFOSTART 373 | |
200 | #define RPL_ENDOFINFO 374 | |
201 | #define RPL_MOTDSTART 375 | |
202 | #define RPL_ENDOFMOTD 376 | |
203 | #define RPL_WHOISHOST 378 | |
204 | ||
205 | #define RPL_YOUREOPER 381 | |
206 | #define RPL_REHASHING 382 | |
207 | #define RPL_MYPORTIS 384 | |
208 | #define RPL_NOTOPERANYMORE 385 | |
209 | #define RPL_RSACHALLENGE 386 | |
210 | ||
211 | #define RPL_TIME 391 | |
212 | #define RPL_USERSSTART 392 | |
213 | #define RPL_USERS 393 | |
214 | #define RPL_ENDOFUSERS 394 | |
215 | #define RPL_NOUSERS 395 | |
216 | #define RPL_HOSTHIDDEN 396 /* from ircu -- jilles */ | |
217 | ||
218 | /* | |
219 | * Errors are in the range from 400-599 currently and are grouped by what | |
220 | * commands they come from. | |
221 | */ | |
222 | #define ERR_NOSUCHNICK 401 | |
223 | #define ERR_NOSUCHSERVER 402 | |
224 | #define ERR_NOSUCHCHANNEL 403 | |
225 | #define ERR_CANNOTSENDTOCHAN 404 | |
226 | #define ERR_TOOMANYCHANNELS 405 | |
227 | #define ERR_WASNOSUCHNICK 406 | |
228 | #define ERR_TOOMANYTARGETS 407 | |
229 | #define ERR_NOORIGIN 409 | |
230 | ||
231 | #define ERR_INVALIDCAPCMD 410 | |
232 | ||
233 | #define ERR_NORECIPIENT 411 | |
234 | #define ERR_NOTEXTTOSEND 412 | |
235 | #define ERR_NOTOPLEVEL 413 | |
236 | #define ERR_WILDTOPLEVEL 414 | |
237 | ||
238 | #define ERR_TOOMANYMATCHES 416 | |
239 | ||
240 | #define ERR_UNKNOWNCOMMAND 421 | |
241 | #define ERR_NOMOTD 422 | |
242 | #define ERR_NOADMININFO 423 | |
243 | #define ERR_FILEERROR 424 | |
244 | ||
245 | #define ERR_NONICKNAMEGIVEN 431 | |
246 | #define ERR_ERRONEUSNICKNAME 432 | |
247 | #define ERR_NICKNAMEINUSE 433 | |
248 | #define ERR_BANNICKCHANGE 435 /* bahamut's ERR_BANONCHAN -- jilles */ | |
249 | #define ERR_NICKCOLLISION 436 | |
250 | #define ERR_UNAVAILRESOURCE 437 | |
251 | #define ERR_NICKTOOFAST 438 /* We did it first Undernet! ;) db */ | |
252 | ||
253 | #define ERR_SERVICESDOWN 440 | |
254 | #define ERR_USERNOTINCHANNEL 441 | |
255 | #define ERR_NOTONCHANNEL 442 | |
256 | #define ERR_USERONCHANNEL 443 | |
257 | #define ERR_NOLOGIN 444 | |
258 | #define ERR_SUMMONDISABLED 445 | |
259 | #define ERR_USERSDISABLED 446 | |
260 | ||
261 | #define ERR_NOTREGISTERED 451 | |
262 | ||
263 | #define ERR_ACCEPTFULL 456 | |
264 | #define ERR_ACCEPTEXIST 457 | |
265 | #define ERR_ACCEPTNOT 458 | |
266 | ||
267 | #define ERR_NEEDMOREPARAMS 461 | |
268 | #define ERR_ALREADYREGISTRED 462 | |
269 | #define ERR_NOPERMFORHOST 463 | |
270 | #define ERR_PASSWDMISMATCH 464 | |
271 | #define ERR_YOUREBANNEDCREEP 465 | |
272 | #define ERR_YOUWILLBEBANNED 466 | |
273 | #define ERR_KEYSET 467 | |
274 | ||
275 | #define ERR_LINKCHANNEL 470 | |
276 | #define ERR_CHANNELISFULL 471 | |
277 | #define ERR_UNKNOWNMODE 472 | |
278 | #define ERR_INVITEONLYCHAN 473 | |
279 | #define ERR_BANNEDFROMCHAN 474 | |
280 | #define ERR_BADCHANNELKEY 475 | |
281 | #define ERR_BADCHANMASK 476 | |
282 | #define ERR_NEEDREGGEDNICK 477 | |
283 | #define ERR_BANLISTFULL 478 /* I stole the numeric from ircu -db */ | |
284 | #define ERR_BADCHANNAME 479 | |
285 | ||
286 | #define ERR_THROTTLE 480 | |
287 | ||
288 | #define ERR_NOPRIVILEGES 481 | |
289 | #define ERR_CHANOPRIVSNEEDED 482 | |
290 | #define ERR_CANTKILLSERVER 483 | |
291 | #define ERR_ISCHANSERVICE 484 | |
292 | /* #define ERR_RESTRICTED 484 - hyb derived, no longer here */ | |
293 | #define ERR_BANNEDNICK 485 | |
294 | #define ERR_NONONREG 486 /* bahamut; aka ERR_ACCOUNTONLY asuka -- jilles */ | |
295 | ||
296 | #define ERR_VOICENEEDED 489 | |
297 | ||
298 | #define ERR_NOOPERHOST 491 | |
299 | ||
300 | #define ERR_UMODEUNKNOWNFLAG 501 | |
301 | #define ERR_USERSDONTMATCH 502 | |
302 | ||
303 | #define ERR_GHOSTEDCLIENT 503 | |
304 | ||
305 | #define ERR_USERNOTONSERV 504 | |
306 | ||
307 | /* #define ERR_LAST_ERR_MSG 505 | |
308 | * moved to 999 | |
309 | */ | |
310 | #define ERR_WRONGPONG 513 | |
311 | ||
bd710c88 JT |
312 | #define ERR_DISABLED 517 /* from ircu */ |
313 | ||
212380e3 AC |
314 | #define ERR_HELPNOTFOUND 524 |
315 | ||
af7aaa84 AC |
316 | #define RPL_WHOISSECURE 671 /* Unreal3.2 --nenolod */ |
317 | ||
212380e3 AC |
318 | #define RPL_MODLIST 702 |
319 | #define RPL_ENDOFMODLIST 703 | |
320 | ||
321 | #define RPL_HELPSTART 704 | |
322 | #define RPL_HELPTXT 705 | |
323 | #define RPL_ENDOFHELP 706 | |
324 | ||
325 | #define ERR_TARGCHANGE 707 | |
326 | ||
327 | #define RPL_ETRACEFULL 708 | |
328 | #define RPL_ETRACE 709 | |
329 | ||
330 | #define RPL_KNOCK 710 | |
331 | #define RPL_KNOCKDLVR 711 | |
332 | ||
333 | #define ERR_TOOMANYKNOCK 712 | |
334 | #define ERR_CHANOPEN 713 | |
335 | #define ERR_KNOCKONCHAN 714 | |
336 | #define ERR_KNOCKDISABLED 715 | |
337 | ||
338 | #define ERR_TARGUMODEG 716 | |
339 | #define RPL_TARGNOTIFY 717 | |
340 | #define RPL_UMODEGMSG 718 | |
341 | ||
342 | #define RPL_OMOTDSTART 720 | |
343 | #define RPL_OMOTD 721 | |
344 | #define RPL_ENDOFOMOTD 722 | |
345 | ||
346 | #define ERR_NOPRIVS 723 | |
347 | ||
348 | #define RPL_TESTMASK 724 | |
349 | #define RPL_TESTLINE 725 | |
350 | #define RPL_NOTESTLINE 726 | |
351 | #define RPL_TESTMASKGECOS 727 | |
352 | ||
51027be8 AF |
353 | #define RPL_QUIETLIST 728 |
354 | #define RPL_ENDOFQUIETLIST 729 | |
355 | ||
212380e3 AC |
356 | #define RPL_MONONLINE 730 |
357 | #define RPL_MONOFFLINE 731 | |
358 | #define RPL_MONLIST 732 | |
359 | #define RPL_ENDOFMONLIST 733 | |
360 | #define ERR_MONLISTFULL 734 | |
361 | ||
362 | #define RPL_RSACHALLENGE2 740 | |
363 | #define RPL_ENDOFRSACHALLENGE2 741 | |
364 | ||
365 | #define RPL_SCANMATCHED 750 | |
366 | #define RPL_SCANUMODES 751 | |
367 | ||
368 | #define RPL_LOGGEDIN 900 | |
369 | #define RPL_LOGGEDOUT 901 | |
370 | #define ERR_NICKLOCKED 902 | |
371 | ||
372 | #define RPL_SASLSUCCESS 903 | |
373 | #define ERR_SASLFAIL 904 | |
374 | #define ERR_SASLTOOLONG 905 | |
375 | #define ERR_SASLABORTED 906 | |
376 | #define ERR_SASLALREADY 907 | |
377 | ||
378 | #define ERR_LAST_ERR_MSG 999 | |
379 | ||
380 | #endif /* INCLUDED_numeric_h */ |