ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/numeric.h
Revision: 1175
Committed: Sun Aug 14 10:47:48 2011 UTC (14 years, 11 months ago) by michael
Content type: text/x-chdr
Original Path: ircd-hybrid-8/include/numeric.h
File size: 16402 byte(s)
Log Message:
- several fixes to services compatibility mode

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * numeric.h: A header for the numeric functions.
4     *
5     * Copyright (C) 2002 by the past and present ircd coders, and others.
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20     * USA
21     *
22 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_numeric_h
26     #define INCLUDED_numeric_h
27    
28     #define LOCALE_LENGTH 64 /* maximum length of locale name + 1 */
29    
30     struct NumericInfo
31     {
32     const char *name; /* common name of the numeric */
33     const char *standard; /* standard numeric text */
34     char *translated; /* translated numeric text */
35     };
36    
37     /* form_str - return a format string for a message number
38     * messages are defined below
39     */
40     extern const char *form_str(int);
41     extern void set_locale(const char *);
42     extern const char *get_locale(void);
43    
44     /*
45     * Reserve numerics 000-099 for server-client connections where the client
46     * is local to the server. If any server is passed a numeric in this range
47     * from another server then it is remapped to 100-199. -avalon
48     */
49     #define RPL_WELCOME 001
50     #define RPL_YOURHOST 002
51     #define RPL_CREATED 003
52     #define RPL_MYINFO 004
53     #define RPL_ISUPPORT 005
54     /* RPL_BOUNCE IRCnet extension */
55     /* RPL_MAP 6 unreal */
56     /* RPL_MAPEND 7 unreal */
57     /* RPL_SNOMASK 8 Undernet extension */
58     /* RPL_STATMEMTOT 9 Undernet extension */
59     /* RPL_STATMEM 10 Undernet extension */
60    
61     #define RPL_REDIR 10
62     #define RPL_MAP 15 /* Undernet extension */
63     #define RPL_MAPMORE 16 /* Undernet extension */
64     #define RPL_MAPEND 17 /* Undernet extension */
65    
66     #define RPL_YOURID 42 /* IRCnet extension */
67     /* RPL_ATTEMPTINGJUNC 50 aircd extension */
68     /* RPL_ATTEMPTINGREROUTE 51 aircd extension */
69    
70     /*
71     * Numeric replies from server commands.
72     * These are currently in the range 200-399.
73     */
74     #define RPL_TRACELINK 200
75     #define RPL_TRACECONNECTING 201
76     #define RPL_TRACEHANDSHAKE 202
77     #define RPL_TRACEUNKNOWN 203
78     #define RPL_TRACEOPERATOR 204
79     #define RPL_TRACEUSER 205
80     #define RPL_TRACESERVER 206
81     #define RPL_TRACECAPTURED 207
82     #define RPL_TRACENEWTYPE 208
83     #define RPL_TRACECLASS 209
84    
85     /* RPL_STATS 210 aircd extension, used instead of having
86     multiple stats numerics */
87     /* RPL_TRACERECONNECT 210 IRCnet extension */
88    
89     #define RPL_STATSLINKINFO 211
90     #define RPL_STATSCOMMANDS 212
91     #define RPL_STATSCLINE 213
92     #define RPL_STATSNLINE 214
93     /* RPL_STATSOLDNLINE 214 unreal */
94     #define RPL_STATSILINE 215
95     #define RPL_STATSKLINE 216
96     #define RPL_STATSQLINE 217
97     #define RPL_STATSYLINE 218
98     #define RPL_ENDOFSTATS 219
99     /* note ircu uses 217 for STATSPLINE frip. conflict
100     * as RPL_STATSQLINE was used in old 2.8 for Q line
101     * I'm going to steal 220 for now *sigh*
102     * -Dianora
103     */
104    
105     #define RPL_STATSPLINE 220
106     #define RPL_UMODEIS 221
107    
108     /* RPL_SQLINE_NICK 222 Numerics List: Dalnet */
109     /* RPL_STATSELINE 223 dalnet */
110     /* RPL_STATSGLINE 223 unreal */
111     /* RPL_STATSFLINE 224 Hybrid extension,Dalnet */
112     /* RPL_STATSTLINE 224 unreal */
113     /* RPL_STATSDLINE 225 Hybrid extension */
114     /* RPL_STATSZLINE 225 Dalnet
115     RPL_STATSELINE 225 unreal
116     RPL_STATSCOUNT 226 Dalnet
117     RPL_STATSNLINE 226 unreal
118     RPL_STATSGLINE 227 Dalnet
119     RPL_STATSVLINE 227 unreal */
120    
121     #define RPL_STATSFLINE 224
122     #define RPL_STATSDLINE 225
123     #define RPL_STATSALINE 226
124    
125     /* RPL_RULES 232 unreal */
126    
127     /* RPL_STATSIAUTH 239 IRCnet extension */
128     /* RPL_STATSVLINE 240 IRCnet extension */
129     /* RPL_STATSXLINE 240 austnet */
130    
131     #define RPL_STATSLLINE 241
132     #define RPL_STATSUPTIME 242
133     #define RPL_STATSOLINE 243
134     #define RPL_STATSHLINE 244
135     /* 245 No longer used in ircd-hybrid */
136     #define RPL_STATSSLINE 245
137 michael 1175 #define RPL_STATSSERVICE 246
138 adx 30 #define RPL_STATSXLINE 247
139     #define RPL_STATSULINE 248
140     #define RPL_STATSDEBUG 249
141     #define RPL_STATSCONN 250
142     /* RPL_STATSDLINE 250 Numerics List: IRCnet */
143     #define RPL_LUSERCLIENT 251
144     #define RPL_LUSEROP 252
145     #define RPL_LUSERUNKNOWN 253
146     #define RPL_LUSERCHANNELS 254
147     #define RPL_LUSERME 255
148     #define RPL_ADMINME 256
149     #define RPL_ADMINLOC1 257
150     #define RPL_ADMINLOC2 258
151     #define RPL_ADMINEMAIL 259
152    
153     #define RPL_ENDOFTRACE 262
154     #define RPL_LOAD2HI 263
155    
156     /* RPL_TRYAGAIN 263 Numerics List: IRCnet */
157     /* RPL_LOAD2HI 263 Dalnet */
158     /* RPL_CURRENT_LOCAL 265 aircd/efnet/hybrid/dalnet*/
159     /* RPL_CURRENT_GLOBAL 266 aircd/efnet/hybrid/dalnet */
160     /* RPL_START_NETSTAT 267 aircd */
161     /* RPL_NETSTAT 268 aircd */
162     /* RPL_END_NETSTAT 269 aircd */
163    
164     #define RPL_LOCALUSERS 265
165     #define RPL_GLOBALUSERS 266
166    
167     #define RPL_ACCEPTLIST 281
168     #define RPL_ENDOFACCEPT 282
169    
170     /* RPL_GLIST 280 Undernet extension */
171     /* RPL_ENDOFGLIST 281 Undernet extension */
172     /* RPL_JUPELIST 282 Undernet extension - jupe -Kev */
173     /* RPL_ENDOFJUPELIST 283 Undernet extension - jupe -Kev */
174     /* RPL_FEATURE 284 Undernet extension - features */
175     /* RPL_CHANINFO_HANDLE 285 aircd */
176     /* RPL_CHANINFO_USERS 286 aircd */
177     /* RPL_CHANINFO_CHOPS 287 aircd */
178     /* RPL_CHANINFO_VOICES 288 aircd */
179     /* RPL_CHANINFO_AWAY 289 aircd */
180     /* RPL_CHANINFO_OPERS 290 aircd */
181     /* RPL_HELPHDR 290 Numeric List: Dalnet */
182     /* RPL_CHANINFO_BANNED 291 aircd */
183     /* RPL_HELPOP 291 Numeric List: Dalnet */
184     /* RPL_CHANINFO_BANS 292 aircd */
185     /* RPL_HELPTLR 292 Numeric List: Dalnet */
186     /* RPL_CHANINFO_INVITE 293 aircd */
187     /* RPL_HELPHLP 293 Numeric List: Dalnet */
188     /* RPL_CHANINFO_INVITES 294 aircd */
189     /* RPL_HELPFWD 294 Numeric List: Dalnet */
190     /* RPL_CHANINFO_KICK 295 aircd */
191     /* RPL_HELPIGN 295 Numeric List: Dalnet */
192     /* RPL_CHANINFO_KICKS 296 aircd */
193    
194     /* RPL_END_CHANINFO 299 aircd */
195    
196     /* numeric_replies */
197     #define RPL_AWAY 301
198     #define RPL_USERHOST 302
199     #define RPL_ISON 303
200     #define RPL_TEXT 304
201     #define RPL_UNAWAY 305
202     #define RPL_NOWAWAY 306
203 michael 1158 /* RPL_USERIP 307 Undernet extension */
204     #define RPL_WHOISREGNICK 307
205 adx 30 /* RPL_SUSERHOST 307 austnet */
206     /* RPL_NOTIFYACTION 308 aircd */
207     #define RPL_WHOISADMIN 308 /* Numeric List: Dalnet */
208     /* RPL_RULESSTART 308 unreal */
209     /* RPL_NICKTRACE 309 aircd */
210     /* RPL_WHOISSADMIN 309 Numeric List: Dalnet */
211     /* RPL_ENDOFRULES 309 unreal */
212     /* RPL_WHOISHELPER 309 austnet */
213     /* RPL_WHOISSVCMSG 310 Dalnet */
214     /* RPL_WHOISHELPOP 310 unreal */
215     /* RPL_WHOISSERVICE 310 austnet */
216    
217     #define RPL_WHOISUSER 311
218     #define RPL_WHOISSERVER 312
219     #define RPL_WHOISOPERATOR 313
220    
221     #define RPL_WHOWASUSER 314
222     /* rpl_endofwho below (315) */
223     #define RPL_ENDOFWHOWAS 369
224    
225     #define RPL_WHOISCHANOP 316 /* redundant and not needed but reserved */
226     #define RPL_WHOISIDLE 317
227    
228     #define RPL_ENDOFWHOIS 318
229     #define RPL_WHOISCHANNELS 319
230     /* RPL_WHOIS_HIDDEN 320 Anothernet +h, ick! */
231     /* RPL_WHOISSPECIAL 320 unreal */
232     #define RPL_LISTSTART 321
233     #define RPL_LIST 322
234     #define RPL_LISTEND 323
235     #define RPL_CHANNELMODEIS 324
236     /* RPL_CHANNELPASSIS 325 IRCnet extension */
237     /* RPL_UNIQOPIS 325 IRCnet extension */
238     /* RPL_NOCHANPASS 326 IRCnet extension */
239     /* RPL_CHPASSUNKNOWN 327 IRCnet extension */
240     /* RPL_CHANNEL_URL 328 dalnet, anothernet */
241     #define RPL_CREATIONTIME 329
242     /* RPL_WHOWAS_TIME 330 ? */
243     #define RPL_NOTOPIC 331
244     #define RPL_TOPIC 332
245     #define RPL_TOPICWHOTIME 333
246     /* RPL_COMMANDSYNTAX 334 Dalnet */
247     /* RPL_LISTSYNTAX 334 unreal */
248     /* RPL_CHANPASSOK 338 IRCnet extension (?)*/
249     #define RPL_WHOISACTUALLY 338 /* dalnet */
250     /* RPL_WHOISACTUALLY 338 Undernet extension, dalnet */
251     /* RPL_BADCHANPASS 339 IRCnet extension (?)*/
252     /* RPL_USERIP 340 (old) Undernet extension */
253     #define RPL_INVITING 341
254     /* RPL_SUMMONING 342 removed from RFC1459 */
255    
256     #define RPL_INVITELIST 346
257     #define RPL_ENDOFINVITELIST 347 /* IRCnet, Undernet extension */
258     #define RPL_EXCEPTLIST 348
259     #define RPL_ENDOFEXCEPTLIST 349
260    
261     #define RPL_VERSION 351
262    
263     #define RPL_WHOREPLY 352
264     #define RPL_ENDOFWHO 315
265     #define RPL_NAMREPLY 353
266     #define RPL_ENDOFNAMES 366
267    
268     #define RPL_CLOSING 362
269     #define RPL_CLOSEEND 363
270     #define RPL_LINKS 364
271     #define RPL_ENDOFLINKS 365
272     /* rpl_endofnames above (366) */
273     #define RPL_BANLIST 367
274     #define RPL_ENDOFBANLIST 368
275     /* rpl_endofwhowas above (369) */
276    
277     #define RPL_INFO 371
278     #define RPL_MOTD 372
279     #define RPL_INFOSTART 373
280     #define RPL_ENDOFINFO 374
281     #define RPL_MOTDSTART 375
282     #define RPL_ENDOFMOTD 376
283    
284     /* RPL_KICKEXPIRED 377 aircd */
285     /* RPL_SPAM 377 austnet */
286     /* RPL_BANEXPIRED 378 aircd */
287     /* RPL_KICKLINKED 379 aircd */
288     /* RPL_BANLINKED 380 aircd */
289    
290     #define RPL_YOUREOPER 381
291     #define RPL_REHASHING 382
292     /* RPL_YOURSERVICE 383 Numeric List: various */
293     #define RPL_RSACHALLENGE 386
294    
295     /* RPL_QLIST 386 unreal */
296     /* RPL_ENDOFQLIST 387 unreal */
297     /* RPL_ALIST 388 unreal */
298     /* RPL_ENDOFALIST 389 unreal */
299    
300     #define RPL_TIME 391
301     #define RPL_USERSSTART 392
302     #define RPL_USERS 393
303     #define RPL_ENDOFUSERS 394
304     #define RPL_NOUSERS 395
305     #define RPL_HOSTHIDDEN 396
306    
307     /*
308     * Errors are in the range from 400-599 currently and are grouped by what
309     * commands they come from.
310     */
311     #define ERR_NOSUCHNICK 401
312     #define ERR_NOSUCHSERVER 402
313     #define ERR_NOSUCHCHANNEL 403
314     #define ERR_CANNOTSENDTOCHAN 404
315     #define ERR_TOOMANYCHANNELS 405
316     #define ERR_WASNOSUCHNICK 406
317     #define ERR_TOOMANYTARGETS 407
318     #define ERR_NOORIGIN 409
319 michael 503 #define ERR_INVALIDCAPCMD 410
320 adx 30
321     #define ERR_NORECIPIENT 411
322     #define ERR_NOTEXTTOSEND 412
323     #define ERR_NOTOPLEVEL 413
324     #define ERR_WILDTOPLEVEL 414
325     /* ERR_BADMASK 415 IRCnet extension */
326     #define ERR_UNKNOWNCOMMAND 421
327     #define ERR_NOMOTD 422
328     #define ERR_NOADMININFO 423
329    
330     /* ERR_TOOMANYAWAY 429 Dalnet */
331    
332     #define ERR_NONICKNAMEGIVEN 431
333     #define ERR_ERRONEUSNICKNAME 432
334     #define ERR_NICKNAMEINUSE 433
335    
336     /* ERR_SERVICENAMEINUSE 434 ? */
337     /* ERR_NORULES 434 unreal */
338     /* ERR_SERVICECONFUSED 435 ? */
339     /* ERR_BANONCHAN 435 dalnet */
340    
341     #define ERR_NICKCOLLISION 436
342     #define ERR_UNAVAILRESOURCE 437
343     #define ERR_NICKTOOFAST 438 /* We did it first Undernet! ;) db */
344    
345     #define ERR_SERVICESDOWN 440
346    
347     #define ERR_USERNOTINCHANNEL 441
348     #define ERR_NOTONCHANNEL 442
349     #define ERR_USERONCHANNEL 443
350    
351     #define ERR_NOTREGISTERED 451
352    
353     /* ERR_IDCOLLISION 452 IRCnet extension ? */
354     /* ERR_NICKLOST 453 IRCnet extension ? */
355    
356     /* ERR_HOSTILENAME 455 unreal */
357    
358     /* ERR_NOHIDING 459 unreal */
359     /* ERR_NOTFORHALFOPS 460 unreal */
360    
361     #define ERR_ACCEPTFULL 456
362     #define ERR_ACCEPTEXIST 457
363     #define ERR_ACCEPTNOT 458
364    
365     #define ERR_NEEDMOREPARAMS 461
366     #define ERR_ALREADYREGISTRED 462
367     #define ERR_PASSWDMISMATCH 464
368     #define ERR_YOUREBANNEDCREEP 465
369 michael 1167 #define ERR_ONLYSERVERSCANCHANGE 468
370 adx 30 /* ERR_LINKSET 469 unreal */
371     /* ERR_LINKCHANNEL 470 unreal */
372     /* ERR_KICKEDFROMCHAN 470 aircd */
373 michael 1150 #define ERR_OPERONLYCHAN 470
374 adx 30 #define ERR_CHANNELISFULL 471
375     #define ERR_UNKNOWNMODE 472
376     #define ERR_INVITEONLYCHAN 473
377     #define ERR_BANNEDFROMCHAN 474
378     #define ERR_BADCHANNELKEY 475
379 michael 1173 #define ERR_NEEDREGGEDNICK 477
380 adx 30 #define ERR_BANLISTFULL 478 /* I stole the numeric from ircu -db */
381     #define ERR_BADCHANNAME 479
382     /* ERR_LINKFAIL 479 unreal */
383 michael 1150 #define ERR_SSLONLYCHAN 480
384 adx 30 #define ERR_NOPRIVILEGES 481
385     #define ERR_CHANOPRIVSNEEDED 482
386     #define ERR_CANTKILLSERVER 483
387     #define ERR_RESTRICTED 484
388     /* ERR_DESYNC 484 Dalnet,PTlink */
389     /* ERR_ATTACKDENY 484 unreal */
390     /* ERR_RESTRICTED 484 IRCnet extension */
391     /* ERR_UNIQOPRIVSNEEDED 485 IRCnet extension */
392     /* ERR_KILLDENY 485 unreal */
393     /* ERR_CANTKICKADMIN 485 PTlink */
394 michael 1173 #define ERR_NONONREG 486
395 adx 30 /* ERR_CHANTOORECENT 487 IRCnet extension (?) */
396     /* ERR_TSLESSCHAN 488 IRCnet extension (?) */
397     /* ERR_VOICENEEDED 489 Undernet extension */
398     #define ERR_NOOPERHOST 491
399     /* ERR_NOSERVICEHOST 492 IRCnet extension */
400    
401     #define ERR_UMODEUNKNOWNFLAG 501
402     #define ERR_USERSDONTMATCH 502
403    
404     #define ERR_GHOSTEDCLIENT 503
405     /* ERR_VWORLDWARN 503 austnet */
406    
407     #define ERR_USERNOTONSERV 504
408    
409     /* #define ERR_LAST_ERR_MSG 505
410     * moved to 999
411     */
412    
413    
414 michael 876 #define ERR_TOOMANYWATCH 512
415 adx 30 #define ERR_WRONGPONG 513
416     /* ERR_TOOMANYDCC 514 dalnet */
417     /* ERR_NOINVITE 518 unreal */
418     #define ERR_LONGMASK 518 /* Undernet extension -Kev */
419     /* ERR_ADMONLY 519 unreal */
420     /* ERR_TOOMANYUSERS 519 Undernet extension -Kev */
421     /* ERR_OPERONLY 520 unreal */
422     /* ERR_MASKTOOWIDE 520 Undernet extension -Kev */
423     /* ERR_WHOTRUNC 520 austnet */
424     /* ERR_LASTERROR 521 Undernet extension -Kev */
425     #define ERR_LISTSYNTAX 521
426     /* ERR_WHOSYNTAX 522 dalnet */
427     /* ERR_WHOLIMEXCEED 523 dalnet */
428    
429     #define ERR_HELPNOTFOUND 524
430    
431 michael 876 #define RPL_LOGON 600
432     #define RPL_LOGOFF 601
433     #define RPL_WATCHOFF 602
434     #define RPL_WATCHSTAT 603
435     #define RPL_NOWON 604
436     #define RPL_NOWOFF 605
437     #define RPL_WATCHLIST 606
438     #define RPL_ENDOFWATCHLIST 607
439 adx 30
440 michael 876 /* RPL_MAPMORE 610 unreal
441 adx 30
442     RPL_MAPMORE 615 PTlink
443    
444     RPL_DCCSTATUS 617 dalnet
445     RPL_DCCLIST 618 dalnet
446     RPL_ENDOFDCCLIST 619 dalnet
447     RPL_DCCINFO 620 dalnet
448    
449     RPL_DUMPING 640 unreal
450     RPL_DUMPRPL 641 unreal
451     RPL_EODUMP 642 unreal
452     */
453    
454 michael 1114 #define RPL_WHOISSECURE 671
455 adx 30 #define RPL_MODLIST 702
456     #define RPL_ENDOFMODLIST 703
457    
458     #define RPL_HELPSTART 704
459     #define RPL_HELPTXT 705
460     #define RPL_ENDOFHELP 706
461    
462 michael 1114 #define RPL_ETRACE_FULL 708
463     #define RPL_ETRACE 709
464    
465 adx 30 #define RPL_KNOCK 710
466     #define RPL_KNOCKDLVR 711
467    
468     #define ERR_TOOMANYKNOCK 712
469     #define ERR_CHANOPEN 713
470     #define ERR_KNOCKONCHAN 714
471     #define ERR_KNOCKDISABLED 715
472    
473 adx 660 #define RPL_TARGUMODEG 716
474 adx 30 #define RPL_TARGNOTIFY 717
475     #define RPL_UMODEGMSG 718
476    
477     #define RPL_OMOTDSTART 720
478     #define RPL_OMOTD 721
479     #define RPL_ENDOFOMOTD 722
480    
481     #define ERR_NOPRIVS 723
482    
483     #define RPL_TESTMASK 724
484     #define RPL_TESTLINE 725
485     #define RPL_NOTESTLINE 726
486     #define RPL_ISCAPTURED 727
487     #define RPL_ISUNCAPTURED 728
488    
489     #define ERR_LAST_ERR_MSG 999
490    
491     #endif /* INCLUDED_numeric_h */

Properties

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