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

Comparing:
ircd-hybrid/include/numeric.h (file contents), Revision 33 by knight, Sun Oct 2 20:50:00 2005 UTC vs.
ircd-hybrid/branches/8.1.x/include/numeric.h (file contents), Revision 2726 by michael, Sun Dec 29 13:27:10 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 78 | Line 58 | extern const char *get_locale(void);
58   #define RPL_TRACEOPERATOR    204
59   #define RPL_TRACEUSER        205
60   #define RPL_TRACESERVER      206
81 – #define RPL_TRACECAPTURED    207
61   #define RPL_TRACENEWTYPE     208
62   #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 –
63   #define RPL_STATSLINKINFO    211
64   #define RPL_STATSCOMMANDS    212
65   #define RPL_STATSCLINE       213
66   #define RPL_STATSNLINE       214
93 – /*      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 79 | extern const char *get_locale(void);
79  
80   #define RPL_STATSPLINE       220
81   #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 –
82   #define RPL_STATSFLINE       224
83   #define RPL_STATSDLINE       225
84   #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 –
85   #define RPL_STATSLLINE       241
86   #define RPL_STATSUPTIME      242
87   #define RPL_STATSOLINE       243
88   #define RPL_STATSHLINE       244
89 < /* 245 No longer used in ircd-hybrid */
90 < #define RPL_STATSSLINE       245
89 > #define RPL_STATSTLINE       245
90 > #define RPL_STATSSERVICE     246
91   #define RPL_STATSXLINE       247
92   #define RPL_STATSULINE       248
93   #define RPL_STATSDEBUG       249
94   #define RPL_STATSCONN        250
141 – /*      RPL_STATSDLINE       250           Numerics List: IRCnet */
95   #define RPL_LUSERCLIENT      251
96   #define RPL_LUSEROP          252
97   #define RPL_LUSERUNKNOWN     253
# Line 148 | Line 101 | extern const char *get_locale(void);
101   #define RPL_ADMINLOC1        257
102   #define RPL_ADMINLOC2        258
103   #define RPL_ADMINEMAIL       259
151 –
104   #define RPL_ENDOFTRACE       262
105   #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 –
106   #define RPL_LOCALUSERS       265
107   #define RPL_GLOBALUSERS      266
108 <
166 < #define RPL_WHOISSSL         275
167 <
108 > #define RPL_WHOISCERTFP      276
109   #define RPL_ACCEPTLIST       281
110   #define RPL_ENDOFACCEPT      282
111 <
171 < /*      RPL_GLIST            280        Undernet extension */
172 < /*      RPL_ENDOFGLIST       281        Undernet extension */
173 < /*      RPL_JUPELIST         282        Undernet extension - jupe -Kev */
174 < /*      RPL_ENDOFJUPELIST    283        Undernet extension - jupe -Kev */
175 < /*      RPL_FEATURE          284        Undernet extension - features */
176 < /*      RPL_CHANINFO_HANDLE  285           aircd */
177 < /*      RPL_CHANINFO_USERS   286           aircd */
178 < /*      RPL_CHANINFO_CHOPS   287           aircd */
179 < /*      RPL_CHANINFO_VOICES  288           aircd */
180 < /*      RPL_CHANINFO_AWAY    289           aircd */
181 < /*      RPL_CHANINFO_OPERS   290           aircd */
182 < /*      RPL_HELPHDR          290        Numeric List: Dalnet */
183 < /*      RPL_CHANINFO_BANNED  291           aircd */
184 < /*      RPL_HELPOP           291        Numeric List: Dalnet */
185 < /*      RPL_CHANINFO_BANS    292           aircd */
186 < /*      RPL_HELPTLR          292        Numeric List: Dalnet */
187 < /*      RPL_CHANINFO_INVITE  293           aircd */
188 < /*      RPL_HELPHLP          293        Numeric List: Dalnet */
189 < /*      RPL_CHANINFO_INVITES 294           aircd */
190 < /*      RPL_HELPFWD          294        Numeric List: Dalnet */
191 < /*      RPL_CHANINFO_KICK    295           aircd */
192 < /*      RPL_HELPIGN          295        Numeric List: Dalnet */
193 < /*      RPL_CHANINFO_KICKS   296           aircd */
194 <
195 < /*      RPL_END_CHANINFO     299           aircd */
111 > #define RPL_NEWHOSTIS        285
112  
113   /* numeric_replies */
114   #define RPL_AWAY             301
115   #define RPL_USERHOST         302
116   #define RPL_ISON             303
201 – #define RPL_TEXT             304
117   #define RPL_UNAWAY           305
118   #define RPL_NOWAWAY          306
119 < #define RPL_USERIP           307        /* Undernet extension */
205 < /*      RPL_WHOISREGNICK     307        Numeric List: Dalnet */
206 < /*      RPL_SUSERHOST        307        austnet */
207 < /*      RPL_NOTIFYACTION     308         aircd */
208 < #define RPL_WHOISADMIN       308        /* Numeric List: Dalnet */
209 < /*      RPL_RULESSTART       308        unreal */
210 < /*      RPL_NICKTRACE        309         aircd */
211 < /*      RPL_WHOISSADMIN      309        Numeric List: Dalnet */
212 < /*      RPL_ENDOFRULES       309        unreal */
213 < /*      RPL_WHOISHELPER      309        austnet */
214 < /*      RPL_WHOISSVCMSG      310         Dalnet */
215 < /*      RPL_WHOISHELPOP      310        unreal */
216 < /*      RPL_WHOISSERVICE     310        austnet */
217 <
119 > #define RPL_WHOISREGNICK     307
120   #define RPL_WHOISUSER        311
121   #define RPL_WHOISSERVER      312
122   #define RPL_WHOISOPERATOR    313
123  
124   #define RPL_WHOWASUSER       314
125 < /* rpl_endofwho below (315) */
224 < #define RPL_ENDOFWHOWAS      369
225 <
125 > #define RPL_ENDOFWHO         315
126   #define RPL_WHOISCHANOP      316 /* redundant and not needed but reserved */
127   #define RPL_WHOISIDLE        317
228 –
128   #define RPL_ENDOFWHOIS       318
129   #define RPL_WHOISCHANNELS    319
231 – /*      RPL_WHOIS_HIDDEN     320         Anothernet +h, ick! */
232 – /*      RPL_WHOISSPECIAL     320        unreal */
130   #define RPL_LISTSTART        321
131   #define RPL_LIST             322
132   #define RPL_LISTEND          323
133   #define RPL_CHANNELMODEIS    324
237 – /*      RPL_CHANNELPASSIS    325           IRCnet extension */
238 – /*      RPL_UNIQOPIS         325           IRCnet extension */
239 – /*      RPL_NOCHANPASS       326           IRCnet extension */
240 – /*      RPL_CHPASSUNKNOWN    327           IRCnet extension */
241 – /*      RPL_CHANNEL_URL      328           dalnet, anothernet */
134   #define RPL_CREATIONTIME     329
135 < /*      RPL_WHOWAS_TIME      330               ? */
135 > #define RPL_WHOISACCOUNT     330
136   #define RPL_NOTOPIC          331
137   #define RPL_TOPIC            332
138   #define RPL_TOPICWHOTIME     333
139 < /*      RPL_COMMANDSYNTAX    334           Dalnet */
140 < /*      RPL_LISTSYNTAX       334           unreal */
249 < /*      RPL_CHANPASSOK       338           IRCnet extension (?)*/
250 < #define RPL_WHOISACTUALLY    338        /* dalnet */
251 < /*      RPL_WHOISACTUALLY    338           Undernet extension, dalnet */
252 < /*      RPL_BADCHANPASS      339           IRCnet extension (?)*/
253 < /*      RPL_USERIP           340           (old) Undernet extension */
139 > #define RPL_WHOISTEXT        337
140 > #define RPL_WHOISACTUALLY    338
141   #define RPL_INVITING         341
255 – /*      RPL_SUMMONING        342           removed from RFC1459 */
256 –
142   #define RPL_INVITELIST       346
143 < #define RPL_ENDOFINVITELIST  347        /* IRCnet, Undernet extension */
143 > #define RPL_ENDOFINVITELIST  347
144   #define RPL_EXCEPTLIST       348
145   #define RPL_ENDOFEXCEPTLIST  349
261 –
146   #define RPL_VERSION          351
263 –
147   #define RPL_WHOREPLY         352
265 – #define RPL_ENDOFWHO         315
148   #define RPL_NAMREPLY         353
267 – #define RPL_ENDOFNAMES       366
268 –
149   #define RPL_CLOSING          362
150   #define RPL_CLOSEEND         363
151   #define RPL_LINKS            364
152   #define RPL_ENDOFLINKS       365
153 < /* rpl_endofnames above (366) */
153 > #define RPL_ENDOFNAMES       366
154   #define RPL_BANLIST          367
155   #define RPL_ENDOFBANLIST     368
156 < /* rpl_endofwhowas above (369) */
277 <
156 > #define RPL_ENDOFWHOWAS      369
157   #define RPL_INFO             371
158   #define RPL_MOTD             372
159   #define RPL_INFOSTART        373
160   #define RPL_ENDOFINFO        374
161   #define RPL_MOTDSTART        375
162   #define RPL_ENDOFMOTD        376
163 <
285 < /*      RPL_KICKEXPIRED      377   aircd */
286 < /*      RPL_SPAM             377   austnet */
287 < /*      RPL_BANEXPIRED       378   aircd */
288 < /*      RPL_KICKLINKED       379   aircd */
289 < /*      RPL_BANLINKED        380   aircd */
290 <
163 > #define RPL_WHOISMODES       379
164   #define RPL_YOUREOPER        381
165   #define RPL_REHASHING        382
293 – /*      RPL_YOURSERVICE      383           Numeric List: various */
166   #define RPL_RSACHALLENGE     386
295 –
296 – /*      RPL_QLIST            386        unreal */
297 – /*      RPL_ENDOFQLIST       387        unreal */
298 – /*      RPL_ALIST            388        unreal */
299 – /*      RPL_ENDOFALIST       389        unreal */
300 –
167   #define RPL_TIME             391
168   #define RPL_USERSSTART       392
169   #define RPL_USERS            393
# Line 316 | Line 182 | extern const char *get_locale(void);
182   #define ERR_TOOMANYCHANNELS  405
183   #define ERR_WASNOSUCHNICK    406
184   #define ERR_TOOMANYTARGETS   407
185 + #define ERR_NOCTRLSONCHAN    408
186   #define ERR_NOORIGIN         409
187 + #define ERR_INVALIDCAPCMD    410
188  
189   #define ERR_NORECIPIENT      411
190   #define ERR_NOTEXTTOSEND     412
191   #define ERR_NOTOPLEVEL       413
192   #define ERR_WILDTOPLEVEL     414
325 – /*      ERR_BADMASK          415           IRCnet extension */
193   #define ERR_UNKNOWNCOMMAND   421
194   #define ERR_NOMOTD           422
195   #define ERR_NOADMININFO      423
329 –
330 – /*      ERR_TOOMANYAWAY      429            Dalnet */
331 –
196   #define ERR_NONICKNAMEGIVEN  431
197   #define ERR_ERRONEUSNICKNAME 432
198   #define ERR_NICKNAMEINUSE    433
335 –
336 – /*      ERR_SERVICENAMEINUSE 434 ? */
337 – /*      ERR_NORULES          434   unreal */
338 – /*      ERR_SERVICECONFUSED  435 ? */
339 – /*      ERR_BANONCHAN        435   dalnet */
340 –
199   #define ERR_NICKCOLLISION    436
200   #define ERR_UNAVAILRESOURCE  437
201   #define ERR_NICKTOOFAST      438        /* We did it first Undernet! ;) db */
344 –
202   #define ERR_SERVICESDOWN     440
346 –
203   #define ERR_USERNOTINCHANNEL 441
204   #define ERR_NOTONCHANNEL     442
205   #define ERR_USERONCHANNEL    443
350 –
206   #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 –
207   #define ERR_ACCEPTFULL       456
208   #define ERR_ACCEPTEXIST      457
209   #define ERR_ACCEPTNOT        458
364 –
210   #define ERR_NEEDMOREPARAMS   461
211   #define ERR_ALREADYREGISTRED 462
212   #define ERR_PASSWDMISMATCH   464
213   #define ERR_YOUREBANNEDCREEP 465
214 < /*      ERR_ONLYSERVERSCANCHANGE 468       Dalnet,unreal */
215 < /*      ERR_LINKSET          469        unreal */
371 < /*      ERR_LINKCHANNEL      470        unreal */
372 < /*      ERR_KICKEDFROMCHAN   470         aircd */
214 > #define ERR_ONLYSERVERSCANCHANGE 468
215 > #define ERR_OPERONLYCHAN     470
216   #define ERR_CHANNELISFULL    471
217   #define ERR_UNKNOWNMODE      472
218   #define ERR_INVITEONLYCHAN   473
219   #define ERR_BANNEDFROMCHAN   474
220   #define ERR_BADCHANNELKEY    475
221 < /*      ERR_MODELESS         477           ircu numeric -db */
221 > #define ERR_NEEDREGGEDNICK   477
222   #define ERR_BANLISTFULL      478        /* I stole the numeric from ircu -db */
223   #define ERR_BADCHANNAME      479
224 < /*      ERR_LINKFAIL         479        unreal */
382 < /*      ERR_CANNOTKNOCK      480        unreal */
383 < /*      ERR_NOULINE          480        austnet */
224 > #define ERR_SSLONLYCHAN      480
225   #define ERR_NOPRIVILEGES     481
226   #define ERR_CHANOPRIVSNEEDED 482
227   #define ERR_CANTKILLSERVER   483
228   #define ERR_RESTRICTED       484
229 < /*      ERR_DESYNC           484         Dalnet,PTlink */
230 < /*      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 < /*      ERR_HTMDISABLED      486           unreal */
395 < /*      ERR_CHANTOORECENT    487           IRCnet extension (?) */
396 < /*      ERR_TSLESSCHAN       488           IRCnet extension (?) */
397 < /*      ERR_VOICENEEDED      489           Undernet extension */
229 > #define ERR_CHANBANREASON    485
230 > #define ERR_NONONREG         486
231   #define ERR_NOOPERHOST       491
399 – /*      ERR_NOSERVICEHOST    492           IRCnet extension */
400 –
232   #define ERR_UMODEUNKNOWNFLAG 501
233   #define ERR_USERSDONTMATCH   502
403 –
234   #define ERR_GHOSTEDCLIENT    503
405 – /*      ERR_VWORLDWARN       503           austnet */
406 –
235   #define ERR_USERNOTONSERV    504
236 <
409 < /* #define ERR_LAST_ERR_MSG 505
410 < * moved to 999
411 < */
412 <
413 < /*      ERR_NOTIFYFULL       512           aircd */
414 < /*      ERR_TOOMANYWATCH     512           Numeric List: Dalnet */
415 < /*      ERR_NEEDPONG         512           Numeric List: Dalnet */
416 <
236 > #define ERR_TOOMANYWATCH     512
237   #define ERR_WRONGPONG        513
418 – /*      ERR_TOOMANYDCC       514        dalnet */
419 – /*      ERR_NOINVITE         518        unreal */
238   #define ERR_LONGMASK         518        /* Undernet extension -Kev */
421 – /*      ERR_ADMONLY          519        unreal */
422 – /*      ERR_TOOMANYUSERS     519        Undernet extension -Kev */
423 – /*      ERR_OPERONLY         520        unreal */
424 – /*      ERR_MASKTOOWIDE      520        Undernet extension -Kev */
425 – /*      ERR_WHOTRUNC         520        austnet */
426 – /*      ERR_LASTERROR        521        Undernet extension -Kev */
239   #define ERR_LISTSYNTAX       521
428 – /*      ERR_WHOSYNTAX        522        dalnet */
429 – /*      ERR_WHOLIMEXCEED     523        dalnet */
430 –
240   #define ERR_HELPNOTFOUND     524
241 <
242 < /*      RPL_LOGON            600        dalnet,unreal
243 <        RPL_LOGOFF           601        dalnet,unreal
244 <        RPL_WATCHOFF         602        dalnet,unreal
245 <        RPL_WATCHSTAT        603        dalnet,unreal
246 <        RPL_NOWON            604        dalnet,unreal
247 <        RPL_NOWOFF           605        dalnet,unreal
248 <        RPL_WATCHLIST        606        dalnet,unreal
249 <        RPL_ENDOFWATCHLIST   607        dalnet,unreal
441 <
442 <        RPL_MAPMORE          610        unreal
443 <
444 <        RPL_MAPMORE          615        PTlink
445 <        
446 <        RPL_DCCSTATUS        617        dalnet
447 <        RPL_DCCLIST          618        dalnet
448 <        RPL_ENDOFDCCLIST     619        dalnet
449 <        RPL_DCCINFO          620        dalnet
450 <        
451 <        RPL_DUMPING          640        unreal
452 <        RPL_DUMPRPL          641        unreal
453 <        RPL_EODUMP           642        unreal
454 < */
455 <
241 > #define RPL_LOGON            600
242 > #define RPL_LOGOFF           601
243 > #define RPL_WATCHOFF         602
244 > #define RPL_WATCHSTAT        603
245 > #define RPL_NOWON            604
246 > #define RPL_NOWOFF           605
247 > #define RPL_WATCHLIST        606
248 > #define RPL_ENDOFWATCHLIST   607
249 > #define RPL_WHOISSECURE      671
250   #define RPL_MODLIST          702
251   #define RPL_ENDOFMODLIST     703
458 –
252   #define RPL_HELPSTART        704
253   #define RPL_HELPTXT          705
254   #define RPL_ENDOFHELP        706
255 <
255 > #define RPL_ETRACE           709
256   #define RPL_KNOCK            710
257   #define RPL_KNOCKDLVR        711
465 –
258   #define ERR_TOOMANYKNOCK     712
259   #define ERR_CHANOPEN         713
260   #define ERR_KNOCKONCHAN      714
261 < #define ERR_KNOCKDISABLED    715
470 <
471 < #define ERR_TARGUMODEG       716
261 > #define RPL_TARGUMODEG       716
262   #define RPL_TARGNOTIFY       717
263   #define RPL_UMODEGMSG        718
474 –
475 – #define RPL_OMOTDSTART       720
476 – #define RPL_OMOTD            721
477 – #define RPL_ENDOFOMOTD       722
478 –
264   #define ERR_NOPRIVS          723
265  
481 – #define RPL_TESTMASK         724
482 – #define RPL_TESTLINE         725
483 – #define RPL_NOTESTLINE       726
484 – #define RPL_ISCAPTURED       727
485 – #define RPL_ISUNCAPTURED     728
486 –
266   #define ERR_LAST_ERR_MSG     999
267  
268   #endif /* INCLUDED_numeric_h */

Diff Legend

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