ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/numeric.h
(Generate patch)

Comparing ircd-hybrid/trunk/include/numeric.h (file contents):
Revision 1834 by michael, Fri Apr 19 19:50:27 2013 UTC vs.
Revision 1837 by michael, Sun Apr 21 09:27:27 2013 UTC

# Line 25 | Line 25
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
28   /* form_str - return a format string for a message number
29   * messages are defined below
30   */
31 < extern const char *form_str(int);
41 < extern void set_locale(const char *);
42 < extern const char *get_locale(void);
31 > extern const char *form_str(unsigned int);
32  
33   /*
34   * Reserve numerics 000-099 for server-client connections where the client
# Line 51 | Line 40 | extern const char *get_locale(void);
40   #define RPL_CREATED          003
41   #define RPL_MYINFO           004
42   #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
43   #define RPL_REDIR            10
44   #define RPL_MAP              15         /* Undernet extension */
45   #define RPL_MAPMORE          16         /* Undernet extension */
46   #define RPL_MAPEND           17         /* Undernet extension */
47  
48   #define RPL_YOURID           42         /* IRCnet extension */
67 /*      RPL_ATTEMPTINGJUNC    50           aircd extension */
68 /*      RPL_ATTEMPTINGREROUTE 51           aircd extension */
49  
50   /*
51   * Numeric replies from server commands.
# Line 80 | Line 60 | extern const char *get_locale(void);
60   #define RPL_TRACESERVER      206
61   #define RPL_TRACENEWTYPE     208
62   #define RPL_TRACECLASS       209
83
84 /*      RPL_STATS            210 aircd extension, used instead of having
85                                 multiple stats numerics */
86 /*      RPL_TRACERECONNECT   210 IRCnet extension */                                
87
63   #define RPL_STATSLINKINFO    211
64   #define RPL_STATSCOMMANDS    212
65   #define RPL_STATSCLINE       213
66   #define RPL_STATSNLINE       214
92 /*      RPL_STATSOLDNLINE    214    unreal */
67   #define RPL_STATSILINE       215
68   #define RPL_STATSKLINE       216
69   #define RPL_STATSQLINE       217
70   #define RPL_STATSYLINE       218
71   #define RPL_ENDOFSTATS       219
72 < /* note ircu uses 217 for STATSPLINE frip. conflict
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*
77   * -Dianora
# Line 104 | Line 80 | extern const char *get_locale(void);
80   #define RPL_STATSPLINE       220
81   #define RPL_UMODEIS          221
82  
107 /*      RPL_SQLINE_NICK      222           Numerics List: Dalnet */
108 /*      RPL_STATSELINE       223           dalnet */
109 /*      RPL_STATSGLINE       223           unreal */
110 /*      RPL_STATSFLINE       224           Hybrid extension,Dalnet */
111 /*      RPL_STATSTLINE       224           unreal */
112 /*      RPL_STATSDLINE       225           Hybrid extension */
113 /*      RPL_STATSZLINE       225           Dalnet
114        RPL_STATSELINE       225           unreal
115        RPL_STATSCOUNT       226           Dalnet
116        RPL_STATSNLINE       226           unreal
117        RPL_STATSGLINE       227           Dalnet
118        RPL_STATSVLINE       227           unreal */
119
83   #define RPL_STATSFLINE       224
84   #define RPL_STATSDLINE       225
85   #define RPL_STATSALINE       226
86  
124 /*      RPL_RULES            232        unreal */
125
126 /*      RPL_STATSIAUTH       239           IRCnet extension */
127 /*      RPL_STATSVLINE       240           IRCnet extension */
128 /*      RPL_STATSXLINE       240        austnet */
129
87   #define RPL_STATSLLINE       241
88   #define RPL_STATSUPTIME      242
89   #define RPL_STATSOLINE       243
# Line 138 | Line 95 | extern const char *get_locale(void);
95   #define RPL_STATSULINE       248
96   #define RPL_STATSDEBUG       249
97   #define RPL_STATSCONN        250
141 /*      RPL_STATSDLINE       250           Numerics List: IRCnet */
98   #define RPL_LUSERCLIENT      251
99   #define RPL_LUSEROP          252
100   #define RPL_LUSERUNKNOWN     253
# Line 151 | Line 107 | extern const char *get_locale(void);
107  
108   #define RPL_ENDOFTRACE       262
109   #define RPL_LOAD2HI          263
154
155 /*      RPL_TRYAGAIN         263           Numerics List: IRCnet */
156 /*      RPL_LOAD2HI          263           Dalnet */
157 /*      RPL_CURRENT_LOCAL    265           aircd/efnet/hybrid/dalnet*/
158 /*      RPL_CURRENT_GLOBAL   266           aircd/efnet/hybrid/dalnet */
159 /*      RPL_START_NETSTAT    267           aircd */
160 /*      RPL_NETSTAT          268           aircd */
161 /*      RPL_END_NETSTAT      269           aircd */
162
110   #define RPL_LOCALUSERS       265
111   #define RPL_GLOBALUSERS      266
165
112   #define RPL_ACCEPTLIST       281
113   #define RPL_ENDOFACCEPT      282
114  
169 /*      RPL_GLIST            280        Undernet extension */
170 /*      RPL_ENDOFGLIST       281        Undernet extension */
171 /*      RPL_JUPELIST         282        Undernet extension - jupe -Kev */
172 /*      RPL_ENDOFJUPELIST    283        Undernet extension - jupe -Kev */
173 /*      RPL_FEATURE          284        Undernet extension - features */
174 /*      RPL_CHANINFO_HANDLE  285           aircd */
175 /*      RPL_CHANINFO_USERS   286           aircd */
176 /*      RPL_CHANINFO_CHOPS   287           aircd */
177 /*      RPL_CHANINFO_VOICES  288           aircd */
178 /*      RPL_CHANINFO_AWAY    289           aircd */
179 /*      RPL_CHANINFO_OPERS   290           aircd */
180 /*      RPL_HELPHDR          290        Numeric List: Dalnet */
181 /*      RPL_CHANINFO_BANNED  291           aircd */
182 /*      RPL_HELPOP           291        Numeric List: Dalnet */
183 /*      RPL_CHANINFO_BANS    292           aircd */
184 /*      RPL_HELPTLR          292        Numeric List: Dalnet */
185 /*      RPL_CHANINFO_INVITE  293           aircd */
186 /*      RPL_HELPHLP          293        Numeric List: Dalnet */
187 /*      RPL_CHANINFO_INVITES 294           aircd */
188 /*      RPL_HELPFWD          294        Numeric List: Dalnet */
189 /*      RPL_CHANINFO_KICK    295           aircd */
190 /*      RPL_HELPIGN          295        Numeric List: Dalnet */
191 /*      RPL_CHANINFO_KICKS   296           aircd */
192
193 /*      RPL_END_CHANINFO     299           aircd */
194
115   /* numeric_replies */
116   #define RPL_AWAY             301
117   #define RPL_USERHOST         302
# Line 199 | Line 119 | extern const char *get_locale(void);
119   #define RPL_TEXT             304
120   #define RPL_UNAWAY           305
121   #define RPL_NOWAWAY          306
202 /*      RPL_USERIP           307        Undernet extension */
122   #define RPL_WHOISREGNICK     307
204 /*      RPL_SUSERHOST        307        austnet */
205 /*      RPL_NOTIFYACTION     308         aircd */
123   #define RPL_WHOISADMIN       308        /* Numeric List: Dalnet */
207 /*      RPL_RULESSTART       308        unreal */
208 /*      RPL_NICKTRACE        309         aircd */
209 /*      RPL_WHOISSADMIN      309        Numeric List: Dalnet */
210 /*      RPL_ENDOFRULES       309        unreal */
211 /*      RPL_WHOISHELPER      309        austnet */
212 /*      RPL_WHOISSVCMSG      310         Dalnet */
213 /*      RPL_WHOISHELPOP      310        unreal */
214 /*      RPL_WHOISSERVICE     310        austnet */
124  
125   #define RPL_WHOISUSER        311
126   #define RPL_WHOISSERVER      312
# Line 226 | Line 135 | extern const char *get_locale(void);
135  
136   #define RPL_ENDOFWHOIS       318
137   #define RPL_WHOISCHANNELS    319
229 /*      RPL_WHOIS_HIDDEN     320         Anothernet +h, ick! */
230 /*      RPL_WHOISSPECIAL     320        unreal */
138   #define RPL_LISTSTART        321
139   #define RPL_LIST             322
140   #define RPL_LISTEND          323
141   #define RPL_CHANNELMODEIS    324
235 /*      RPL_CHANNELPASSIS    325           IRCnet extension */
236 /*      RPL_UNIQOPIS         325           IRCnet extension */
237 /*      RPL_NOCHANPASS       326           IRCnet extension */
238 /*      RPL_CHPASSUNKNOWN    327           IRCnet extension */
239 /*      RPL_CHANNEL_URL      328           dalnet, anothernet */
142   #define RPL_CREATIONTIME     329
241 /*      RPL_WHOWAS_TIME      330               ? */
143   #define RPL_NOTOPIC          331
144   #define RPL_TOPIC            332
145   #define RPL_TOPICWHOTIME     333
245 /*      RPL_COMMANDSYNTAX    334           Dalnet */
246 /*      RPL_LISTSYNTAX       334           unreal */
247 /*      RPL_CHANPASSOK       338           IRCnet extension (?)*/
146   #define RPL_WHOISACTUALLY    338        /* dalnet */
249 /*      RPL_WHOISACTUALLY    338           Undernet extension, dalnet */
250 /*      RPL_BADCHANPASS      339           IRCnet extension (?)*/
251 /*      RPL_USERIP           340           (old) Undernet extension */
147   #define RPL_INVITING         341
253 /*      RPL_SUMMONING        342           removed from RFC1459 */
254
148   #define RPL_INVITELIST       346
149   #define RPL_ENDOFINVITELIST  347        /* IRCnet, Undernet extension */
150   #define RPL_EXCEPTLIST       348
# Line 279 | Line 172 | extern const char *get_locale(void);
172   #define RPL_ENDOFINFO        374
173   #define RPL_MOTDSTART        375
174   #define RPL_ENDOFMOTD        376
282
283 /*      RPL_KICKEXPIRED      377   aircd */
284 /*      RPL_SPAM             377   austnet */
285 /*      RPL_BANEXPIRED       378   aircd */
286 /*      RPL_KICKLINKED       379   aircd */
287 /*      RPL_BANLINKED        380   aircd */
288
175   #define RPL_YOUREOPER        381
176   #define RPL_REHASHING        382
291 /*      RPL_YOURSERVICE      383           Numeric List: various */
177   #define RPL_RSACHALLENGE     386
293
294 /*      RPL_QLIST            386        unreal */
295 /*      RPL_ENDOFQLIST       387        unreal */
296 /*      RPL_ALIST            388        unreal */
297 /*      RPL_ENDOFALIST       389        unreal */
298
178   #define RPL_TIME             391
179   #define RPL_USERSSTART       392
180   #define RPL_USERS            393
# Line 321 | Line 200 | extern const char *get_locale(void);
200   #define ERR_NOTEXTTOSEND     412
201   #define ERR_NOTOPLEVEL       413
202   #define ERR_WILDTOPLEVEL     414
324 /*      ERR_BADMASK          415           IRCnet extension */
203   #define ERR_UNKNOWNCOMMAND   421
204   #define ERR_NOMOTD           422
205   #define ERR_NOADMININFO      423
328
329 /*      ERR_TOOMANYAWAY      429            Dalnet */
330
206   #define ERR_NONICKNAMEGIVEN  431
207   #define ERR_ERRONEUSNICKNAME 432
208   #define ERR_NICKNAMEINUSE    433
334
335 /*      ERR_SERVICENAMEINUSE 434 ? */
336 /*      ERR_NORULES          434   unreal */
337 /*      ERR_SERVICECONFUSED  435 ? */
338 /*      ERR_BANONCHAN        435   dalnet */
339
209   #define ERR_NICKCOLLISION    436
210   #define ERR_UNAVAILRESOURCE  437
211   #define ERR_NICKTOOFAST      438        /* We did it first Undernet! ;) db */
343
212   #define ERR_SERVICESDOWN     440
345
213   #define ERR_USERNOTINCHANNEL 441
214   #define ERR_NOTONCHANNEL     442
215   #define ERR_USERONCHANNEL    443
349
216   #define ERR_NOTREGISTERED    451
351
352 /*      ERR_IDCOLLISION      452           IRCnet extension ? */
353 /*      ERR_NICKLOST         453           IRCnet extension ? */
354
355 /*      ERR_HOSTILENAME      455           unreal */
356
357 /*      ERR_NOHIDING         459           unreal */
358 /*      ERR_NOTFORHALFOPS    460           unreal */
359
217   #define ERR_ACCEPTFULL       456
218   #define ERR_ACCEPTEXIST      457
219   #define ERR_ACCEPTNOT        458
363
220   #define ERR_NEEDMOREPARAMS   461
221   #define ERR_ALREADYREGISTRED 462
222   #define ERR_PASSWDMISMATCH   464
223   #define ERR_YOUREBANNEDCREEP 465
224   #define ERR_ONLYSERVERSCANCHANGE 468
369 /*      ERR_LINKSET          469        unreal */
370 /*      ERR_LINKCHANNEL      470        unreal */
371 /*      ERR_KICKEDFROMCHAN   470         aircd */
225   #define ERR_OPERONLYCHAN     470
226   #define ERR_CHANNELISFULL    471
227   #define ERR_UNKNOWNMODE      472
# Line 378 | Line 231 | extern const char *get_locale(void);
231   #define ERR_NEEDREGGEDNICK   477
232   #define ERR_BANLISTFULL      478        /* I stole the numeric from ircu -db */
233   #define ERR_BADCHANNAME      479
381 /*      ERR_LINKFAIL         479        unreal */
234   #define ERR_SSLONLYCHAN      480
235   #define ERR_NOPRIVILEGES     481
236   #define ERR_CHANOPRIVSNEEDED 482
237   #define ERR_CANTKILLSERVER   483
238   #define ERR_RESTRICTED       484
387 /*      ERR_DESYNC           484         Dalnet,PTlink */
388 /*      ERR_ATTACKDENY       484         unreal */
389 /*      ERR_RESTRICTED       484           IRCnet extension */
390 /*      ERR_UNIQOPRIVSNEEDED 485           IRCnet extension */
391 /*      ERR_KILLDENY         485           unreal */
392 /*      ERR_CANTKICKADMIN    485           PTlink */
239   #define ERR_NONONREG         486
394 /*      ERR_CHANTOORECENT    487           IRCnet extension (?) */
395 /*      ERR_TSLESSCHAN       488           IRCnet extension (?) */
396 /*      ERR_VOICENEEDED      489           Undernet extension */
240   #define ERR_NOOPERHOST       491
398 /*      ERR_NOSERVICEHOST    492           IRCnet extension */
399
241   #define ERR_UMODEUNKNOWNFLAG 501
242   #define ERR_USERSDONTMATCH   502
402
243   #define ERR_GHOSTEDCLIENT    503
404 /*      ERR_VWORLDWARN       503           austnet */
405
244   #define ERR_USERNOTONSERV    504
407
408 /* #define ERR_LAST_ERR_MSG 505
409 * moved to 999
410 */
411
412
245   #define ERR_TOOMANYWATCH     512
246   #define ERR_WRONGPONG        513
415 /*      ERR_TOOMANYDCC       514        dalnet */
416 /*      ERR_NOINVITE         518        unreal */
247   #define ERR_LONGMASK         518        /* Undernet extension -Kev */
418 /*      ERR_ADMONLY          519        unreal */
419 /*      ERR_TOOMANYUSERS     519        Undernet extension -Kev */
420 /*      ERR_OPERONLY         520        unreal */
421 /*      ERR_MASKTOOWIDE      520        Undernet extension -Kev */
422 /*      ERR_WHOTRUNC         520        austnet */
423 /*      ERR_LASTERROR        521        Undernet extension -Kev */
248   #define ERR_LISTSYNTAX       521
425 /*      ERR_WHOSYNTAX        522        dalnet */
426 /*      ERR_WHOLIMEXCEED     523        dalnet */
427
249   #define ERR_HELPNOTFOUND     524
429
250   #define RPL_LOGON            600
251   #define RPL_LOGOFF           601
252   #define RPL_WATCHOFF         602
# Line 435 | Line 255 | extern const char *get_locale(void);
255   #define RPL_NOWOFF           605
256   #define RPL_WATCHLIST        606
257   #define RPL_ENDOFWATCHLIST   607
438
439 /*      RPL_MAPMORE          610        unreal
440
441        RPL_MAPMORE          615        PTlink
442        
443        RPL_DCCSTATUS        617        dalnet
444        RPL_DCCLIST          618        dalnet
445        RPL_ENDOFDCCLIST     619        dalnet
446        RPL_DCCINFO          620        dalnet
447        
448        RPL_DUMPING          640        unreal
449        RPL_DUMPRPL          641        unreal
450        RPL_EODUMP           642        unreal
451 */
452
258   #define RPL_WHOISSECURE      671
259   #define RPL_MODLIST          702
260   #define RPL_ENDOFMODLIST     703
456
261   #define RPL_HELPSTART        704
262   #define RPL_HELPTXT          705
263   #define RPL_ENDOFHELP        706
460
264   #define RPL_ETRACE_FULL      708
265   #define RPL_ETRACE           709
463
266   #define RPL_KNOCK            710
267   #define RPL_KNOCKDLVR        711
466
268   #define ERR_TOOMANYKNOCK     712
269   #define ERR_CHANOPEN         713
270   #define ERR_KNOCKONCHAN      714
470
271   #define RPL_TARGUMODEG       716
272   #define RPL_TARGNOTIFY       717
273   #define RPL_UMODEGMSG        718
474
274   #define ERR_NOPRIVS          723
476
275   #define RPL_TESTMASK         724
276   #define RPL_TESTLINE         725
277   #define RPL_NOTESTLINE       726

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)