2 * IRC - Internet Relay Chat, include/numeric.h
3 * Copyright (C) 1990 Jarkko Oikarinen
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 1, or (at your option)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 /*=============================================================================
28 * Reserve numerics 000-099 for server-client connections where the client
29 * is local to the server. If any server is passed a numeric in this range
30 * from another server then it is remapped to 100-199. -avalon
33 #define RPL_YOURHOST 2
36 #define RPL_MAP 5 /* Undernet extension */
37 #define RPL_MAPMORE 6 /* Undernet extension */
38 #define RPL_MAPEND 7 /* Undernet extension */
39 #define RPL_SNOMASK 8 /* Undernet extension */
40 #define RPL_STATMEMTOT 9 /* Undernet extension */
41 #define RPL_STATMEM 10 /* Undernet extension */
42 /* RPL_YOURCOOKIE 14 IRCnet extension */
45 * Errors are in the range from 400-599 currently and are grouped by what
46 * commands they come from.
48 #define ERR_NOSUCHNICK 401
49 #define ERR_NOSUCHSERVER 402
50 #define ERR_NOSUCHCHANNEL 403
51 #define ERR_CANNOTSENDTOCHAN 404
52 #define ERR_TOOMANYCHANNELS 405
53 #define ERR_WASNOSUCHNICK 406
54 #define ERR_TOOMANYTARGETS 407
55 #define ERR_NOORIGIN 409
57 #define ERR_NORECIPIENT 411
58 #define ERR_NOTEXTTOSEND 412
59 #define ERR_NOTOPLEVEL 413
60 #define ERR_WILDTOPLEVEL 414
62 #define ERR_QUERYTOOLONG 416 /* Undernet extension */
64 #define ERR_UNKNOWNCOMMAND 421
65 #define ERR_NOMOTD 422
66 #define ERR_NOADMININFO 423
67 /* ERR_FILEERROR 424 removed from RFC1459 */
69 #define ERR_NONICKNAMEGIVEN 431
70 #define ERR_ERRONEUSNICKNAME 432
71 #define ERR_NICKNAMEINUSE 433
72 #define ERR_NICKCOLLISION 436
73 #define ERR_BANNICKCHANGE 437 /* Undernet extension */
74 #define ERR_NICKTOOFAST 438 /* Undernet extension */
75 #define ERR_TARGETTOOFAST 439 /* Undernet extension */
77 #define ERR_USERNOTINCHANNEL 441
78 #define ERR_NOTONCHANNEL 442
79 #define ERR_USERONCHANNEL 443
80 /* ERR_NOLOGIN 444 removed from RFC1459 */
81 /* ERR_SUMMONDISABLED 445 removed from RFC1459 */
82 /* ERR_USERSDISABLED 446 removed from RFC1459 */
84 #define ERR_NOTREGISTERED 451
85 /* ERR_IDCOLLISION 452 IRCnet extension */
86 /* ERR_NICKLOST 453 IRCnet extension */
88 #define ERR_NEEDMOREPARAMS 461
89 #define ERR_ALREADYREGISTRED 462
90 #define ERR_NOPERMFORHOST 463
91 #define ERR_PASSWDMISMATCH 464
92 #define ERR_YOUREBANNEDCREEP 465
93 #define ERR_YOUWILLBEBANNED 466
94 #define ERR_KEYSET 467 /* Undernet extension */
95 #define ERR_INVALIDUSERNAME 468 /* Undernet extension */
97 #define ERR_CHANNELISFULL 471
98 #define ERR_UNKNOWNMODE 472
99 #define ERR_INVITEONLYCHAN 473
100 #define ERR_BANNEDFROMCHAN 474
101 #define ERR_BADCHANNELKEY 475
102 #define ERR_BADCHANMASK 476 /* Undernet extension */
103 /* ERR_NEEDREGGEDNICK 477 DalNet Extention */
104 #define ERR_BANLISTFULL 478 /* Undernet extension */
105 /* #define ERR_BADCHANNAME 479 EFNet extension */
107 #define ERR_NOPRIVILEGES 481
108 #define ERR_CHANOPRIVSNEEDED 482
109 #define ERR_CANTKILLSERVER 483
110 #define ERR_ISCHANSERVICE 484 /* Undernet extension */
111 /* ERR_CHANTOORECENT 487 IRCnet extension */
112 /* ERR_TSLESSCHAN 488 IRCnet extension */
113 #define ERR_VOICENEEDED 489 /* Undernet extension */
115 #define ERR_NOOPERHOST 491
117 #define ERR_UMODEUNKNOWNFLAG 501
118 #define ERR_USERSDONTMATCH 502
120 #define ERR_SILELISTFULL 511 /* Undernet extension */
122 #define ERR_NOSUCHGLINE 512 /* Undernet extension */
123 #define ERR_BADPING 513 /* Undernet extension */
126 * Numberic replies from server commands.
127 * These are currently in the range 200-399.
131 #define RPL_USERHOST 302
134 #define RPL_UNAWAY 305
135 #define RPL_NOWAWAY 306
136 #define RPL_USERIP 307 /* Undernet extension */
138 #define RPL_WHOISUSER 311 /* See also RPL_ENDOFWHOIS */
139 #define RPL_WHOISSERVER 312
140 #define RPL_WHOISOPERATOR 313
142 #define RPL_WHOWASUSER 314 /* See also RPL_ENDOFWHOWAS */
143 #define RPL_ENDOFWHO 315 /* See RPL_WHOREPLY/RPL_WHOSPCRPL */
145 /* RPL_WHOISCHANOP 316 removed from RFC1459 */
147 #define RPL_WHOISIDLE 317
149 #define RPL_ENDOFWHOIS 318 /* See RPL_WHOISUSER/RPL_WHOISSERVER/
150 RPL_WHOISOPERATOR/RPL_WHOISIDLE */
151 #define RPL_WHOISCHANNELS 319
153 #define RPL_LISTSTART 321
155 #define RPL_LISTEND 323
156 #define RPL_CHANNELMODEIS 324
157 /* RPL_CHANNELPASSIS 325 IRCnet extension */
158 /* RPL_NOCHANPASS 326 IRCnet extension */
159 /* RPL_CHPASSUNKNOWN 327 IRCnet extension */
160 #define RPL_CREATIONTIME 329
162 #define RPL_NOTOPIC 331
163 #define RPL_TOPIC 332
164 #define RPL_TOPICWHOTIME 333 /* Undernet extension */
165 #define RPL_LISTUSAGE 334 /* Undernet extension */
166 /* RPL_CHANPASSOK 338 IRCnet extension */
167 /* RPL_BADCHANPASS 339 IRCnet extension */
169 #define RPL_INVITING 341
170 /* RPL_SUMMONING 342 removed from RFC1459 */
171 /* RPL_EXCEPTLIST 348 IRCnet extension */
172 /* RPL_ENDOFEXCEPTLIST 349 IRCnet extension */
174 #define RPL_VERSION 351
176 #define RPL_WHOREPLY 352 /* See also RPL_ENDOFWHO */
177 #define RPL_NAMREPLY 353 /* See also RPL_ENDOFNAMES */
178 #define RPL_WHOSPCRPL 354 /* Undernet extension,
179 See also RPL_ENDOFWHO */
181 #define RPL_KILLDONE 361
182 #define RPL_CLOSING 362
183 #define RPL_CLOSEEND 363
184 #define RPL_LINKS 364
185 #define RPL_ENDOFLINKS 365
186 #define RPL_ENDOFNAMES 366 /* See RPL_NAMREPLY */
187 #define RPL_BANLIST 367
188 #define RPL_ENDOFBANLIST 368
189 #define RPL_ENDOFWHOWAS 369
193 #define RPL_INFOSTART 373
194 #define RPL_ENDOFINFO 374
195 #define RPL_MOTDSTART 375
196 #define RPL_ENDOFMOTD 376
198 #define RPL_YOUREOPER 381
199 #define RPL_REHASHING 382
200 #define RPL_MYPORTIS 384
201 #define RPL_NOTOPERANYMORE 385 /* Extension to RFC1459 */
205 #define RPL_TRACELINK 200
206 #define RPL_TRACECONNECTING 201
207 #define RPL_TRACEHANDSHAKE 202
208 #define RPL_TRACEUNKNOWN 203
209 #define RPL_TRACEOPERATOR 204
210 #define RPL_TRACEUSER 205
211 #define RPL_TRACESERVER 206
212 #define RPL_TRACENEWTYPE 208
213 #define RPL_TRACECLASS 209
215 #define RPL_STATSLINKINFO 211
216 #define RPL_STATSCOMMANDS 212
217 #define RPL_STATSCLINE 213
218 #define RPL_STATSNLINE 214
219 #define RPL_STATSILINE 215
220 #define RPL_STATSKLINE 216
221 #define RPL_STATSPLINE 217 /* Undernet extenstion */
222 #define RPL_STATSYLINE 218
223 #define RPL_ENDOFSTATS 219 /* See also RPL_STATSDLINE */
225 #define RPL_UMODEIS 221
227 #define RPL_SERVICEINFO 231
228 #define RPL_ENDOFSERVICES 232
229 #define RPL_SERVICE 233
230 #define RPL_SERVLIST 234
231 #define RPL_SERVLISTEND 235
233 #define RPL_STATSLLINE 241
234 #define RPL_STATSUPTIME 242
235 #define RPL_STATSOLINE 243
236 #define RPL_STATSHLINE 244
237 /* RPL_STATSSLINE 245 Reserved */
238 #define RPL_STATSTLINE 246 /* Undernet extension */
239 #define RPL_STATSGLINE 247 /* Undernet extension */
240 #define RPL_STATSULINE 248 /* Undernet extension */
241 #define RPL_STATSDEBUG 249 /* Extension to RFC1459 */
242 #define RPL_STATSCONN 250 /* Undernet extension */
244 #define RPL_LUSERCLIENT 251
245 #define RPL_LUSEROP 252
246 #define RPL_LUSERUNKNOWN 253
247 #define RPL_LUSERCHANNELS 254
248 #define RPL_LUSERME 255
249 #define RPL_ADMINME 256
250 #define RPL_ADMINLOC1 257
251 #define RPL_ADMINLOC2 258
252 #define RPL_ADMINEMAIL 259
254 #define RPL_TRACELOG 261
255 #define RPL_TRACEPING 262 /* Extension to RFC1459 */
257 #define RPL_SILELIST 271 /* Undernet extension */
258 #define RPL_ENDOFSILELIST 272 /* Undernet extension */
260 /* RPL_STATSDELTA 274 IRCnet extension */
261 #define RPL_STATSDLINE 275 /* Undernet extension */
263 #define RPL_GLIST 280 /* Undernet extension */
264 #define RPL_ENDOFGLIST 281 /* Undernet extension */
266 #endif /* NUMERIC_H */