home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / ircd4652.zip / ircd-df-4.6.5-os2 / include / numeric.h < prev    next >
Text File  |  1997-12-28  |  10KB  |  390 lines

  1. /************************************************************************
  2.  *   IRC - Internet Relay Chat, include/numeric.h
  3.  *   Copyright (C) 1990 Jarkko Oikarinen
  4.  *
  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)
  8.  *   any later version.
  9.  *
  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.
  14.  *
  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.
  18.  */
  19.  
  20. /*
  21.  * -- Cabal95 -- 05 Aug 1997
  22.  *
  23.  * Added numerics 600-799 as numeric_replies2[], we ran out
  24.  */
  25.  
  26. /*
  27.  * -- SIO -- 11 Aug 1993
  28.  *
  29.  * Added RPL_TOPICWHOTIME
  30.  */
  31.  
  32. /*
  33.  * -- Tonto -- 18 Aug 1994
  34.  *
  35.  * Added RPL_STATSDLINE
  36.  */
  37.  
  38. /*
  39.  * -- Avalon -- 1 Sep 1992
  40.  *
  41.  * Added RPL_TRACELOG, RPL_STATSOLINE
  42.  */
  43.  
  44. /*
  45.  * -- Avalon -- 13 Aug 1992
  46.  *
  47.  * Added ERR_BADCHANNELKEY, ERR_KEYSET
  48.  */
  49.  
  50. /*
  51.  * -- Avalon -- 10 Aug 1992
  52.  *
  53.  * Added RPL_SUMMONING
  54.  */
  55.  
  56. /*
  57.  * -- Avalon -- 5  Jul 1992
  58.  *
  59.  * Added ERR_NICKCOLLISION
  60.  */
  61.  
  62. /*
  63.  * -- Avalon -- 14 Jul 1992
  64.  *
  65.  * Added RPL_UNAWAY, RPL_NOWAWAY, ERR_NOORIGIN, ERR_FILEERROR, ERR_NOLOGIN,
  66.  * ERR_SUMMONDISABLED, ERR_USERSDISABLED, RPL_USERSSTART, RPL_USERS,
  67.  * RPL_ENDOFUSERS, RPL_NOUSERS
  68.  */
  69.  
  70. /*
  71.  * -- Avalon -- 12 Jul 1992
  72.  *
  73.  * Added RPL_CLOSING RPL_CLOSEEND
  74.  */
  75.  
  76. /*
  77.  * -- Avalon -- 10-11 Jul 1992
  78.  *
  79.  * Added RPL_MOTD, RPL_MOTDSTART, RPL_ENDOFMOTD, ERR_NOMOTD,
  80.  * RPL_INFO, RPL_INFOSTART, RPL_ENDOFINFO, ERR_CANTKILLSERVER,
  81.  * RPL_LUSERCLIENT, RPL_LUSEROP, RPL_LUSERUNKNOWN, RPL_LUSERCHAN, RPL_LUSERME,
  82.  * RPL_STATSUPTIME, RPL_ADMINLOC1, RPL_ADMINLOC2, RPL_ADMINME,
  83.  * RPL_ADMINEMAIL, ERR_NOADMININFO
  84.  */
  85.  
  86. /*
  87.  * -- Avalon -- 28 Jun 1992
  88.  *
  89.  * Added ERR_BADCHANMASK and RPL_ENDOFWHOWAS
  90.  */
  91.  
  92. /*
  93.  * -- Avalon -- 13 May 1992
  94.  *
  95.  * Added RPL_STATSLLINE
  96.  */
  97.  
  98. /*
  99.  * -- Avalon -- 12 Jan 1992
  100.  *
  101.  * Added RPL_TRACELINK
  102.  */
  103.  
  104. /*
  105.  * -- Wumpus -- 30 Nov 1991
  106.  *
  107.  * It's very important that you never change what a numeric means --
  108.  * you can delete old ones (maybe) and add new ones, but never ever
  109.  * take a number and make it suddenly mean something else, or change
  110.  * an old number just for the hell of it.
  111.  */
  112.  
  113. /*
  114.  * -- avalon -- 19 Nov 1991
  115.  * Added ERR_USERSDONTMATCH 
  116.  *
  117.  * -- avalon -- 06 Nov 1991
  118.  * Added RPL_BANLIST, RPL_BANLISTEND, ERR_BANNEDFROMCHAN
  119.  *
  120.  * -- avalon -- 15 Oct 1991
  121.  * Added RPL_TRACEs (201-209)
  122.  * Added RPL_STATSs (211-219)
  123.  */
  124.  
  125. /* -- Jto -- 16 Jun 1990
  126.  * A couple of new numerics added...
  127.  */
  128.  
  129. /* -- Jto -- 03 Jun 1990
  130.  * Added ERR_YOUWILLBEBANNED and Check defines (sigh, had to put 'em here..)
  131.  * Added ERR_UNKNOWNMODE...
  132.  * Added ERR_CANNOTSENDTOCHAN...
  133.  */
  134.  
  135. /*
  136.  * Reserve numerics 000-099 for server-client connections where the client
  137.  * is local to the server. If any server is passed a numeric in this range
  138.  * from another server then it is remapped to 100-199. -avalon
  139.  */
  140. #define    RPL_WELCOME          001
  141. #define    RPL_YOURHOST         002
  142. #define    RPL_CREATED          003
  143. #define    RPL_MYINFO           004
  144. #define RPL_PROTOCTL         005
  145.  
  146. /*
  147.  * Errors are in the range from 400-599 currently and are grouped by what
  148.  * commands they come from.
  149.  */
  150. #define ERR_NOSUCHNICK       401
  151. #define ERR_NOSUCHSERVER     402
  152. #define ERR_NOSUCHCHANNEL    403
  153. #define ERR_CANNOTSENDTOCHAN 404
  154. #define ERR_TOOMANYCHANNELS  405
  155. #define ERR_WASNOSUCHNICK    406
  156. #define ERR_TOOMANYTARGETS   407
  157. #define ERR_NOSUCHSERVICE    408
  158. #define    ERR_NOORIGIN         409
  159.  
  160. #define ERR_NORECIPIENT      411
  161. #define ERR_NOTEXTTOSEND     412
  162. #define ERR_NOTOPLEVEL       413
  163. #define ERR_WILDTOPLEVEL     414
  164.  
  165. #define ERR_UNKNOWNCOMMAND   421
  166. #define    ERR_NOMOTD           422
  167. #define    ERR_NOADMININFO      423
  168. #define    ERR_FILEERROR        424
  169.  
  170. #define ERR_NONICKNAMEGIVEN  431
  171. #define ERR_ERRONEUSNICKNAME 432
  172. #define ERR_NICKNAMEINUSE    433
  173. #define ERR_SERVICENAMEINUSE 434
  174. #define ERR_SERVICECONFUSED  435
  175. #define    ERR_NICKCOLLISION    436
  176. #define ERR_BANNICKCHANGE    437
  177. #define ERR_NCHANGETOOFAST   438
  178. #define ERR_TARGETTOOFAST    439
  179. #define ERR_SERVICESDOWN     440
  180.  
  181. #define ERR_USERNOTINCHANNEL 441
  182. #define ERR_NOTONCHANNEL     442
  183. #define    ERR_USERONCHANNEL    443
  184. #define ERR_NOLOGIN          444
  185. #define    ERR_SUMMONDISABLED   445
  186. #define ERR_USERSDISABLED    446
  187.  
  188. #define ERR_NOTREGISTERED    451
  189.  
  190. #define ERR_HOSTILENAME      455
  191.  
  192. #define ERR_NEEDMOREPARAMS   461
  193. #define ERR_ALREADYREGISTRED 462
  194. #define ERR_NOPERMFORHOST    463
  195. #define ERR_PASSWDMISMATCH   464
  196. #define ERR_YOUREBANNEDCREEP 465
  197. #define ERR_YOUWILLBEBANNED  466
  198. #define    ERR_KEYSET           467
  199. #define ERR_ONLYSERVERSCANCHANGE 468
  200.  
  201. #define ERR_CHANNELISFULL    471
  202. #define ERR_UNKNOWNMODE      472
  203. #define ERR_INVITEONLYCHAN   473
  204. #define ERR_BANNEDFROMCHAN   474
  205. #define    ERR_BADCHANNELKEY    475
  206. #define    ERR_BADCHANMASK      476
  207. #define ERR_NEEDREGGEDNICK   477
  208. #define ERR_BANLISTFULL      478
  209.  
  210. #define ERR_NOPRIVILEGES     481
  211. #define ERR_CHANOPRIVSNEEDED 482
  212. #define    ERR_CANTKILLSERVER   483
  213.  
  214. #define ERR_NOOPERHOST       491
  215. #define ERR_NOSERVICEHOST    492
  216.  
  217. #define ERR_UMODEUNKNOWNFLAG 501
  218. #define ERR_USERSDONTMATCH   502
  219.  
  220. #define ERR_SILELISTFULL     511
  221. #define ERR_TOOMANYWATCH     512
  222. #define ERR_NEEDPONG         513
  223.  
  224. #define ERR_LISTSYNTAX       521
  225.  
  226. /*
  227.  * Numberic replies from server commands.
  228.  * These are currently in the range 200-399.
  229.  */
  230. #define    RPL_NONE             300
  231. #define RPL_AWAY             301
  232. #define RPL_USERHOST         302
  233. #define RPL_ISON             303
  234. #define RPL_TEXT             304
  235. #define    RPL_UNAWAY           305
  236. #define    RPL_NOWAWAY          306
  237. #define RPL_WHOISREGNICK     307
  238. #define RPL_WHOISADMIN         308 /* redundant due to dreamforge changes in /whois reply */
  239. #define RPL_WHOISSADMIN      309 /* shall we remove these? They're not doing anything */
  240. #define RPL_WHOISHELPOP      310 /* -Donwulff */
  241.  
  242. #define RPL_WHOISUSER        311
  243. #define RPL_WHOISSERVER      312
  244. #define RPL_WHOISOPERATOR    313
  245.  
  246. #define RPL_WHOWASUSER       314
  247. /* rpl_endofwho below (315) */
  248. #define    RPL_ENDOFWHOWAS      369
  249.  
  250. #define RPL_WHOISCHANOP      316 /* redundant and not needed but reserved */
  251. #define RPL_WHOISIDLE        317
  252.  
  253. #define RPL_ENDOFWHOIS       318
  254. #define RPL_WHOISCHANNELS    319
  255.  
  256. #define RPL_LISTSTART        321
  257. #define RPL_LIST             322
  258. #define RPL_LISTEND          323
  259. #define RPL_CHANNELMODEIS    324
  260. #define RPL_CREATIONTIME     329
  261.  
  262. #define RPL_NOTOPIC          331
  263. #define RPL_TOPIC            332
  264. #define RPL_TOPICWHOTIME     333
  265.  
  266. #define RPL_LISTSYNTAX       334
  267.  
  268. #define RPL_INVITING         341
  269. #define    RPL_SUMMONING        342
  270.  
  271. #define RPL_VERSION          351
  272.  
  273. #define RPL_WHOREPLY         352
  274. #define RPL_ENDOFWHO         315
  275. #define RPL_NAMREPLY         353
  276. #define RPL_ENDOFNAMES       366
  277.  
  278. #define RPL_KILLDONE         361
  279. #define    RPL_CLOSING          362
  280. #define RPL_CLOSEEND         363
  281. #define RPL_LINKS            364
  282. #define RPL_ENDOFLINKS       365
  283. /* rpl_endofnames above (366) */
  284. #define RPL_BANLIST          367
  285. #define RPL_ENDOFBANLIST     368
  286. /* rpl_endofwhowas above (369) */
  287.  
  288. #define    RPL_INFO             371
  289. #define    RPL_MOTD             372
  290. #define    RPL_INFOSTART        373
  291. #define    RPL_ENDOFINFO        374
  292. #define    RPL_MOTDSTART        375
  293. #define    RPL_ENDOFMOTD        376
  294.  
  295. #define RPL_YOUREOPER        381
  296. #define RPL_REHASHING        382
  297. #define RPL_YOURESERVICE     383
  298. #define RPL_MYPORTIS         384
  299. #define RPL_NOTOPERANYMORE   385
  300.  
  301. #define RPL_TIME             391
  302. #define    RPL_USERSSTART       392
  303. #define    RPL_USERS            393
  304. #define    RPL_ENDOFUSERS       394
  305. #define    RPL_NOUSERS          395
  306.  
  307. #define RPL_TRACELINK        200
  308. #define RPL_TRACECONNECTING  201
  309. #define RPL_TRACEHANDSHAKE   202
  310. #define RPL_TRACEUNKNOWN     203
  311. #define RPL_TRACEOPERATOR    204
  312. #define RPL_TRACEUSER        205
  313. #define RPL_TRACESERVER      206
  314. #define RPL_TRACESERVICE     207
  315. #define RPL_TRACENEWTYPE     208
  316. #define RPL_TRACECLASS       209
  317.  
  318. #define RPL_STATSLINKINFO    211
  319. #define RPL_STATSCOMMANDS    212
  320. #define RPL_STATSCLINE       213
  321. #define RPL_STATSNLINE       214
  322. #define RPL_STATSILINE       215
  323. #define RPL_STATSKLINE       216
  324. #define RPL_STATSQLINE       217
  325. #define RPL_STATSYLINE       218
  326. #define RPL_ENDOFSTATS       219
  327. #define RPL_STATSBLINE         220
  328.  
  329. #define RPL_UMODEIS          221
  330. #define RPL_SQLINE_NICK      222
  331.  
  332. #define RPL_SERVICEINFO      231
  333. #define RPL_ENDOFSERVICES    232
  334. #define    RPL_SERVICE          233
  335. #define RPL_SERVLIST         234
  336. #define RPL_SERVLISTEND      235
  337.  
  338. #define    RPL_STATSLLINE       241
  339. #define    RPL_STATSUPTIME      242
  340. #define    RPL_STATSOLINE       243
  341. #define    RPL_STATSHLINE       244
  342. #define    RPL_STATSSLINE       245
  343. #define RPL_STATSXLINE         247
  344. #define RPL_STATSULINE       248    
  345. #define    RPL_STATSDEBUG         249
  346. #define RPL_STATSCONN        250
  347.  
  348. #define    RPL_LUSERCLIENT      251
  349. #define RPL_LUSEROP          252
  350. #define    RPL_LUSERUNKNOWN     253
  351. #define    RPL_LUSERCHANNELS    254
  352. #define    RPL_LUSERME          255
  353. #define    RPL_ADMINME          256
  354. #define    RPL_ADMINLOC1        257
  355. #define    RPL_ADMINLOC2        258
  356. #define    RPL_ADMINEMAIL       259
  357.  
  358. #define    RPL_TRACELOG         261
  359.  
  360. #define RPL_LOCALUSERS       265
  361. #define RPL_GLOBALUSERS      266
  362.  
  363. #define RPL_SILELIST         271
  364. #define RPL_ENDOFSILELIST    272
  365.  
  366. #define RPL_STATSDLINE       275
  367.  
  368. #define RPL_HELPHDR         290
  369. #define RPL_HELPOP         291
  370. #define RPL_HELPTLR         292
  371. #define RPL_HELPHLP         293
  372. #define RPL_HELPFWD         294
  373. #define RPL_HELPIGN         295
  374.  
  375. /*
  376.  * Numberic replies from server commands.
  377.  * These are also in the range 600-799.
  378.  */
  379.  
  380. #define RPL_LOGON            600
  381. #define RPL_LOGOFF           601
  382. #define RPL_WATCHOFF         602
  383. #define RPL_WATCHSTAT        603
  384. #define RPL_NOWON            604
  385. #define RPL_NOWOFF           605
  386. #define RPL_WATCHLIST        606
  387. #define RPL_ENDOFWATCHLIST   607
  388.  
  389.  
  390.