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