ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/numeric.h
Revision: 2511
Committed: Sun Oct 27 18:56:53 2013 UTC (11 years, 10 months ago) by michael
Content type: text/x-chdr
File size: 8766 byte(s)
Log Message:
- Added usermode +W. Users connected via a webirc gateway get this
  mode set by servers.
- /WHOIS now shows whether a client is connected via a webirc
  gateway

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 michael 1834 /* form_str - return a format string for a message number
29     * messages are defined below
30     */
31 michael 1837 extern const char *form_str(unsigned int);
32 michael 1834
33 adx 30 /*
34     * Reserve numerics 000-099 for server-client connections where the client
35     * is local to the server. If any server is passed a numeric in this range
36     * from another server then it is remapped to 100-199. -avalon
37     */
38 michael 1834 #define RPL_WELCOME 001
39     #define RPL_YOURHOST 002
40     #define RPL_CREATED 003
41     #define RPL_MYINFO 004
42     #define RPL_ISUPPORT 005
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 */
49    
50 adx 30 /*
51     * Numeric replies from server commands.
52     * These are currently in the range 200-399.
53     */
54 michael 1834 #define RPL_TRACELINK 200
55     #define RPL_TRACECONNECTING 201
56     #define RPL_TRACEHANDSHAKE 202
57     #define RPL_TRACEUNKNOWN 203
58     #define RPL_TRACEOPERATOR 204
59     #define RPL_TRACEUSER 205
60     #define RPL_TRACESERVER 206
61     #define RPL_TRACENEWTYPE 208
62     #define RPL_TRACECLASS 209
63     #define RPL_STATSLINKINFO 211
64     #define RPL_STATSCOMMANDS 212
65     #define RPL_STATSCLINE 213
66     #define RPL_STATSNLINE 214
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 michael 1837
73     /*
74     * note ircu uses 217 for STATSPLINE frip. conflict
75 adx 30 * as RPL_STATSQLINE was used in old 2.8 for Q line
76     * I'm going to steal 220 for now *sigh*
77     * -Dianora
78     */
79    
80 michael 1834 #define RPL_STATSPLINE 220
81     #define RPL_UMODEIS 221
82     #define RPL_STATSFLINE 224
83     #define RPL_STATSDLINE 225
84     #define RPL_STATSALINE 226
85     #define RPL_STATSLLINE 241
86     #define RPL_STATSUPTIME 242
87     #define RPL_STATSOLINE 243
88     #define RPL_STATSHLINE 244
89 michael 2150 #define RPL_STATSTLINE 245
90 michael 1834 #define RPL_STATSSERVICE 246
91     #define RPL_STATSXLINE 247
92     #define RPL_STATSULINE 248
93     #define RPL_STATSDEBUG 249
94     #define RPL_STATSCONN 250
95     #define RPL_LUSERCLIENT 251
96     #define RPL_LUSEROP 252
97     #define RPL_LUSERUNKNOWN 253
98     #define RPL_LUSERCHANNELS 254
99     #define RPL_LUSERME 255
100     #define RPL_ADMINME 256
101     #define RPL_ADMINLOC1 257
102     #define RPL_ADMINLOC2 258
103     #define RPL_ADMINEMAIL 259
104     #define RPL_ENDOFTRACE 262
105     #define RPL_LOAD2HI 263
106     #define RPL_LOCALUSERS 265
107     #define RPL_GLOBALUSERS 266
108 michael 2228 #define RPL_WHOISCERTFP 276
109 michael 1834 #define RPL_ACCEPTLIST 281
110     #define RPL_ENDOFACCEPT 282
111 michael 2137 #define RPL_NEWHOSTIS 285
112 michael 1834
113     /* numeric_replies */
114     #define RPL_AWAY 301
115     #define RPL_USERHOST 302
116     #define RPL_ISON 303
117     #define RPL_UNAWAY 305
118     #define RPL_NOWAWAY 306
119     #define RPL_WHOISREGNICK 307
120 michael 1849 #define RPL_WHOISADMIN 308
121 michael 1834
122     #define RPL_WHOISUSER 311
123     #define RPL_WHOISSERVER 312
124     #define RPL_WHOISOPERATOR 313
125    
126     #define RPL_WHOWASUSER 314
127 michael 1849 #define RPL_ENDOFWHO 315
128 michael 1834 #define RPL_WHOISCHANOP 316 /* redundant and not needed but reserved */
129     #define RPL_WHOISIDLE 317
130     #define RPL_ENDOFWHOIS 318
131     #define RPL_WHOISCHANNELS 319
132     #define RPL_LISTSTART 321
133     #define RPL_LIST 322
134     #define RPL_LISTEND 323
135     #define RPL_CHANNELMODEIS 324
136     #define RPL_CREATIONTIME 329
137 michael 2478 #define RPL_WHOISACCOUNT 330
138 michael 1834 #define RPL_NOTOPIC 331
139     #define RPL_TOPIC 332
140     #define RPL_TOPICWHOTIME 333
141 michael 2511 #define RPL_WHOISTEXT 337
142 michael 1849 #define RPL_WHOISACTUALLY 338
143 michael 1834 #define RPL_INVITING 341
144     #define RPL_INVITELIST 346
145 michael 1849 #define RPL_ENDOFINVITELIST 347
146 michael 1834 #define RPL_EXCEPTLIST 348
147     #define RPL_ENDOFEXCEPTLIST 349
148     #define RPL_VERSION 351
149     #define RPL_WHOREPLY 352
150     #define RPL_NAMREPLY 353
151     #define RPL_CLOSING 362
152     #define RPL_CLOSEEND 363
153     #define RPL_LINKS 364
154     #define RPL_ENDOFLINKS 365
155 michael 1849 #define RPL_ENDOFNAMES 366
156 michael 1834 #define RPL_BANLIST 367
157     #define RPL_ENDOFBANLIST 368
158 michael 1849 #define RPL_ENDOFWHOWAS 369
159 michael 1834 #define RPL_INFO 371
160     #define RPL_MOTD 372
161     #define RPL_INFOSTART 373
162     #define RPL_ENDOFINFO 374
163     #define RPL_MOTDSTART 375
164     #define RPL_ENDOFMOTD 376
165     #define RPL_YOUREOPER 381
166     #define RPL_REHASHING 382
167     #define RPL_RSACHALLENGE 386
168     #define RPL_TIME 391
169     #define RPL_USERSSTART 392
170     #define RPL_USERS 393
171     #define RPL_ENDOFUSERS 394
172     #define RPL_NOUSERS 395
173     #define RPL_HOSTHIDDEN 396
174    
175 adx 30 /*
176     * Errors are in the range from 400-599 currently and are grouped by what
177     * commands they come from.
178     */
179 michael 1834 #define ERR_NOSUCHNICK 401
180     #define ERR_NOSUCHSERVER 402
181     #define ERR_NOSUCHCHANNEL 403
182     #define ERR_CANNOTSENDTOCHAN 404
183     #define ERR_TOOMANYCHANNELS 405
184     #define ERR_WASNOSUCHNICK 406
185     #define ERR_TOOMANYTARGETS 407
186 michael 1937 #define ERR_NOCTRLSONCHAN 408
187 michael 1834 #define ERR_NOORIGIN 409
188     #define ERR_INVALIDCAPCMD 410
189    
190     #define ERR_NORECIPIENT 411
191     #define ERR_NOTEXTTOSEND 412
192     #define ERR_NOTOPLEVEL 413
193     #define ERR_WILDTOPLEVEL 414
194     #define ERR_UNKNOWNCOMMAND 421
195     #define ERR_NOMOTD 422
196     #define ERR_NOADMININFO 423
197     #define ERR_NONICKNAMEGIVEN 431
198     #define ERR_ERRONEUSNICKNAME 432
199     #define ERR_NICKNAMEINUSE 433
200     #define ERR_NICKCOLLISION 436
201     #define ERR_UNAVAILRESOURCE 437
202     #define ERR_NICKTOOFAST 438 /* We did it first Undernet! ;) db */
203     #define ERR_SERVICESDOWN 440
204     #define ERR_USERNOTINCHANNEL 441
205     #define ERR_NOTONCHANNEL 442
206     #define ERR_USERONCHANNEL 443
207     #define ERR_NOTREGISTERED 451
208     #define ERR_ACCEPTFULL 456
209     #define ERR_ACCEPTEXIST 457
210     #define ERR_ACCEPTNOT 458
211     #define ERR_NEEDMOREPARAMS 461
212     #define ERR_ALREADYREGISTRED 462
213     #define ERR_PASSWDMISMATCH 464
214     #define ERR_YOUREBANNEDCREEP 465
215     #define ERR_ONLYSERVERSCANCHANGE 468
216     #define ERR_OPERONLYCHAN 470
217     #define ERR_CHANNELISFULL 471
218     #define ERR_UNKNOWNMODE 472
219     #define ERR_INVITEONLYCHAN 473
220     #define ERR_BANNEDFROMCHAN 474
221     #define ERR_BADCHANNELKEY 475
222     #define ERR_NEEDREGGEDNICK 477
223     #define ERR_BANLISTFULL 478 /* I stole the numeric from ircu -db */
224     #define ERR_BADCHANNAME 479
225     #define ERR_SSLONLYCHAN 480
226     #define ERR_NOPRIVILEGES 481
227     #define ERR_CHANOPRIVSNEEDED 482
228     #define ERR_CANTKILLSERVER 483
229     #define ERR_RESTRICTED 484
230 michael 1839 #define ERR_CHANBANREASON 485
231 michael 1834 #define ERR_NONONREG 486
232     #define ERR_NOOPERHOST 491
233     #define ERR_UMODEUNKNOWNFLAG 501
234     #define ERR_USERSDONTMATCH 502
235     #define ERR_GHOSTEDCLIENT 503
236     #define ERR_USERNOTONSERV 504
237     #define ERR_TOOMANYWATCH 512
238     #define ERR_WRONGPONG 513
239     #define ERR_LONGMASK 518 /* Undernet extension -Kev */
240     #define ERR_LISTSYNTAX 521
241     #define ERR_HELPNOTFOUND 524
242     #define RPL_LOGON 600
243     #define RPL_LOGOFF 601
244     #define RPL_WATCHOFF 602
245     #define RPL_WATCHSTAT 603
246     #define RPL_NOWON 604
247     #define RPL_NOWOFF 605
248     #define RPL_WATCHLIST 606
249     #define RPL_ENDOFWATCHLIST 607
250     #define RPL_WHOISSECURE 671
251     #define RPL_MODLIST 702
252     #define RPL_ENDOFMODLIST 703
253     #define RPL_HELPSTART 704
254     #define RPL_HELPTXT 705
255     #define RPL_ENDOFHELP 706
256     #define RPL_ETRACE 709
257     #define RPL_KNOCK 710
258     #define RPL_KNOCKDLVR 711
259     #define ERR_TOOMANYKNOCK 712
260     #define ERR_CHANOPEN 713
261     #define ERR_KNOCKONCHAN 714
262     #define RPL_TARGUMODEG 716
263     #define RPL_TARGNOTIFY 717
264     #define RPL_UMODEGMSG 718
265     #define ERR_NOPRIVS 723
266    
267     #define ERR_LAST_ERR_MSG 999
268    
269     #endif /* INCLUDED_numeric_h */

Properties

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