home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / in4wjcxu / other / irc / include / numeric.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-14  |  8.0 KB  |  312 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.  * -- Avalon -- 1 Sep 1992
  22.  *
  23.  * Added RPL_TRACELOG, RPL_STATSOLINE
  24.  */
  25.  
  26. /*
  27.  * -- Avalon -- 13 Aug 1992
  28.  *
  29.  * Added ERR_BADCHANNELKEY, ERR_KEYSET
  30.  */
  31.  
  32. /*
  33.  * -- Avalon -- 10 Aug 1992
  34.  *
  35.  * Added RPL_SUMMONING
  36.  */
  37.  
  38. /*
  39.  * -- Avalon -- 5  Jul 1992
  40.  *
  41.  * Added ERR_NICKCOLLISION
  42.  */
  43.  
  44. /*
  45.  * -- Avalon -- 14 Jul 1992
  46.  *
  47.  * Added RPL_UNAWAY, RPL_NOWAWAY, ERR_NOORIGIN, ERR_FILEERROR, ERR_NOLOGIN,
  48.  * ERR_SUMMONDISABLED, ERR_USERSDISABLED, RPL_USERSSTART, RPL_USERS,
  49.  * RPL_ENDOFUSERS, RPL_NOUSERS
  50.  */
  51.  
  52. /*
  53.  * -- Avalon -- 12 Jul 1992
  54.  *
  55.  * Added RPL_CLOSING RPL_CLOSEEND
  56.  */
  57.  
  58. /*
  59.  * -- Avalon -- 10-11 Jul 1992
  60.  *
  61.  * Added RPL_MOTD, RPL_MOTDSTART, RPL_ENDOFMOTD, ERR_NOMOTD,
  62.  * RPL_INFO, RPL_INFOSTART, RPL_ENDOFINFO, ERR_CANTKILLSERVER,
  63.  * RPL_LUSERCLIENT, RPL_LUSEROP, RPL_LUSERUNKNOWN, RPL_LUSERCHAN, RPL_LUSERME,
  64.  * RPL_STATSUPTIME, RPL_ADMINLOC1, RPL_ADMINLOC2, RPL_ADMINME,
  65.  * RPL_ADMINEMAIL, ERR_NOADMININFO
  66.  */
  67.  
  68. /*
  69.  * -- Avalon -- 28 Jun 1992
  70.  *
  71.  * Added ERR_BADCHANMASK and RPL_ENDOFWHOWAS
  72.  */
  73.  
  74. /*
  75.  * -- Avalon -- 13 May 1992
  76.  *
  77.  * Added RPL_STATSLLINE
  78.  */
  79.  
  80. /*
  81.  * -- Avalon -- 12 Jan 1992
  82.  *
  83.  * Added RPL_TRACELINK
  84.  */
  85.  
  86. /*
  87.  * -- Wumpus -- 30 Nov 1991
  88.  *
  89.  * It's very important that you never change what a numeric means --
  90.  * you can delete old ones (maybe) and add new ones, but never ever
  91.  * take a number and make it suddenly mean something else, or change
  92.  * an old number just for the hell of it.
  93.  */
  94.  
  95. /*
  96.  * -- avalon -- 19 Nov 1991
  97.  * Added ERR_USERSDONTMATCH 
  98.  *
  99.  * -- avalon -- 06 Nov 1991
  100.  * Added RPL_BANLIST, RPL_BANLISTEND, ERR_BANNEDFROMCHAN
  101.  *
  102.  * -- avalon -- 15 Oct 1991
  103.  * Added RPL_TRACEs (201-209)
  104.  * Added RPL_STATSs (211-219)
  105.  */
  106.  
  107. /* -- Jto -- 16 Jun 1990
  108.  * A couple of new numerics added...
  109.  */
  110.  
  111. /* -- Jto -- 03 Jun 1990
  112.  * Added ERR_YOUWILLBEBANNED and Check defines (sigh, had to put 'em here..)
  113.  * Added ERR_UNKNOWNMODE...
  114.  * Added ERR_CANNOTSENDTOCHAN...
  115.  */
  116.  
  117. /*
  118.  * Reserve numerics 000-099 for server-client connections where the client
  119.  * is local to the server. If any server is passed a numeric in this range
  120.  * from another server then it is remapped to 100-199. -avalon
  121.  */
  122. #define    RPL_WELCOME          001
  123. #define    RPL_YOURHOST         002
  124. #define    RPL_CREATED          003
  125. #define    RPL_MYINFO           004
  126.  
  127. /*
  128.  * Errors are in the range from 400-599 currently and are grouped by what
  129.  * commands they come from.
  130.  */
  131. #define ERR_NOSUCHNICK       401
  132. #define ERR_NOSUCHSERVER     402
  133. #define ERR_NOSUCHCHANNEL    403
  134. #define ERR_CANNOTSENDTOCHAN 404
  135. #define ERR_TOOMANYCHANNELS  405
  136. #define ERR_WASNOSUCHNICK    406
  137. #define ERR_TOOMANYTARGETS   407
  138. #define ERR_NOSUCHSERVICE    408
  139. #define    ERR_NOORIGIN         409
  140.  
  141. #define ERR_NORECIPIENT      411
  142. #define ERR_NOTEXTTOSEND     412
  143. #define ERR_NOTOPLEVEL       413
  144. #define ERR_WILDTOPLEVEL     414
  145.  
  146. #define ERR_UNKNOWNCOMMAND   421
  147. #define    ERR_NOMOTD           422
  148. #define    ERR_NOADMININFO      423
  149. #define    ERR_FILEERROR        424
  150.  
  151. #define ERR_NONICKNAMEGIVEN  431
  152. #define ERR_ERRONEUSNICKNAME 432
  153. #define ERR_NICKNAMEINUSE    433
  154. #define ERR_SERVICENAMEINUSE 434
  155. #define ERR_SERVICECONFUSED  435
  156. #define    ERR_NICKCOLLISION    436
  157.  
  158. #define ERR_USERNOTINCHANNEL 441
  159. #define ERR_NOTONCHANNEL     442
  160. #define    ERR_USERONCHANNEL    443
  161. #define ERR_NOLOGIN          444
  162. #define    ERR_SUMMONDISABLED   445
  163. #define ERR_USERSDISABLED    446
  164.  
  165. #define ERR_NOTREGISTERED    451
  166.  
  167. #define ERR_NEEDMOREPARAMS   461
  168. #define ERR_ALREADYREGISTRED 462
  169. #define ERR_NOPERMFORHOST    463
  170. #define ERR_PASSWDMISMATCH   464
  171. #define ERR_YOUREBANNEDCREEP 465
  172. #define ERR_YOUWILLBEBANNED  466
  173. #define    ERR_KEYSET           467
  174.  
  175. #define ERR_CHANNELISFULL    471
  176. #define ERR_UNKNOWNMODE      472
  177. #define ERR_INVITEONLYCHAN   473
  178. #define ERR_BANNEDFROMCHAN   474
  179. #define    ERR_BADCHANNELKEY    475
  180. #define    ERR_BADCHANMASK      476
  181.  
  182. #define ERR_NOPRIVILEGES     481
  183. #define ERR_CHANOPRIVSNEEDED 482
  184. #define    ERR_CANTKILLSERVER   483
  185.  
  186. #define ERR_NOOPERHOST       491
  187. #define ERR_NOSERVICEHOST    492
  188.  
  189. #define ERR_UMODEUNKNOWNFLAG 501
  190. #define ERR_USERSDONTMATCH   502
  191.  
  192. /*
  193.  * Numberic replies from server commands.
  194.  * These are currently in the range 200-399.
  195.  */
  196. #define    RPL_NONE             300
  197. #define RPL_AWAY             301
  198. #define RPL_USERHOST         302
  199. #define RPL_ISON             303
  200. #define RPL_TEXT             304
  201. #define    RPL_UNAWAY           305
  202. #define    RPL_NOWAWAY          306
  203.  
  204. #define RPL_WHOISUSER        311
  205. #define RPL_WHOISSERVER      312
  206. #define RPL_WHOISOPERATOR    313
  207.  
  208. #define RPL_WHOWASUSER       314
  209. /* rpl_endofwho below (315) */
  210. #define    RPL_ENDOFWHOWAS      369
  211.  
  212. #define RPL_WHOISCHANOP      316 /* redundant and not needed but reserved */
  213. #define RPL_WHOISIDLE        317
  214.  
  215. #define RPL_ENDOFWHOIS       318
  216. #define RPL_WHOISCHANNELS    319
  217.  
  218. #define RPL_LISTSTART        321
  219. #define RPL_LIST             322
  220. #define RPL_LISTEND          323
  221. #define RPL_CHANNELMODEIS    324
  222.  
  223. #define RPL_NOTOPIC          331
  224. #define RPL_TOPIC            332
  225.  
  226. #define RPL_INVITING         341
  227. #define    RPL_SUMMONING        342
  228.  
  229. #define RPL_VERSION          351
  230.  
  231. #define RPL_WHOREPLY         352
  232. #define RPL_ENDOFWHO         315
  233. #define RPL_NAMREPLY         353
  234. #define RPL_ENDOFNAMES       366
  235.  
  236. #define RPL_KILLDONE         361
  237. #define    RPL_CLOSING          362
  238. #define RPL_CLOSEEND         363
  239. #define RPL_LINKS            364
  240. #define RPL_ENDOFLINKS       365
  241. /* rpl_endofnames above (366) */
  242. #define RPL_BANLIST          367
  243. #define RPL_ENDOFBANLIST     368
  244. /* rpl_endofwhowas above (369) */
  245.  
  246. #define    RPL_INFO             371
  247. #define    RPL_MOTD             372
  248. #define    RPL_INFOSTART        373
  249. #define    RPL_ENDOFINFO        374
  250. #define    RPL_MOTDSTART        375
  251. #define    RPL_ENDOFMOTD        376
  252.  
  253. #define RPL_YOUREOPER        381
  254. #define RPL_REHASHING        382
  255. #define RPL_YOURESERVICE     383
  256. #define RPL_MYPORTIS         384
  257. #define RPL_NOTOPERANYMORE   385
  258.  
  259. #define RPL_TIME             391
  260. #define    RPL_USERSSTART       392
  261. #define    RPL_USERS            393
  262. #define    RPL_ENDOFUSERS       394
  263. #define    RPL_NOUSERS          395
  264.  
  265. #define RPL_TRACELINK        200
  266. #define RPL_TRACECONNECTING  201
  267. #define RPL_TRACEHANDSHAKE   202
  268. #define RPL_TRACEUNKNOWN     203
  269. #define RPL_TRACEOPERATOR    204
  270. #define RPL_TRACEUSER        205
  271. #define RPL_TRACESERVER      206
  272. #define RPL_TRACESERVICE     207
  273. #define RPL_TRACENEWTYPE     208
  274. #define RPL_TRACECLASS       209
  275.  
  276. #define RPL_STATSLINKINFO    211
  277. #define RPL_STATSCOMMANDS    212
  278. #define RPL_STATSCLINE       213
  279. #define RPL_STATSNLINE       214
  280. #define RPL_STATSILINE       215
  281. #define RPL_STATSKLINE       216
  282. #define RPL_STATSQLINE       217
  283. #define RPL_STATSYLINE       218
  284. #define RPL_ENDOFSTATS       219
  285.  
  286. #define RPL_UMODEIS          221
  287.  
  288. #define RPL_SERVICEINFO      231
  289. #define RPL_ENDOFSERVICES    232
  290. #define    RPL_SERVICE          233
  291. #define RPL_SERVLIST         234
  292. #define RPL_SERVLISTEND      235
  293.  
  294. #define    RPL_STATSLLINE       241
  295. #define    RPL_STATSUPTIME      242
  296. #define    RPL_STATSOLINE       243
  297. #define    RPL_STATSHLINE       244
  298. #define    RPL_STATSSLINE       245
  299. #define    RPL_STATSDEBUG         249
  300.  
  301. #define    RPL_LUSERCLIENT      251
  302. #define RPL_LUSEROP          252
  303. #define    RPL_LUSERUNKNOWN     253
  304. #define    RPL_LUSERCHANNELS    254
  305. #define    RPL_LUSERME          255
  306. #define    RPL_ADMINME          256
  307. #define    RPL_ADMINLOC1        257
  308. #define    RPL_ADMINLOC2        258
  309. #define    RPL_ADMINEMAIL       259
  310.  
  311. #define    RPL_TRACELOG         261
  312.