ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/numeric.h
Revision: 3109
Committed: Thu Mar 6 19:25:12 2014 UTC (11 years, 5 months ago) by michael
Content type: text/x-chdr
File size: 8422 byte(s)
Log Message:
- Applied Adam's sendto_one_numeric() changes

File Contents

# Content
1 /*
2 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 *
4 * Copyright (c) 1997-2014 ircd-hybrid development team
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19 * USA
20 */
21
22 /*! \file numeric.h
23 * \brief Declarations of numeric replies.
24 * \version $Id$
25 */
26
27 #ifndef INCLUDED_numeric_h
28 #define INCLUDED_numeric_h
29
30 /*
31 * Reserve numerics 000-099 for server-client connections where the client
32 * is local to the server. If any server is passed a numeric in this range
33 * from another server then it is remapped to 100-199. -avalon
34 */
35
36 enum irc_numerics
37 {
38 RPL_WELCOME = 1,
39 RPL_YOURHOST = 2,
40 RPL_CREATED = 3,
41 RPL_MYINFO = 4,
42 RPL_ISUPPORT = 5,
43 RPL_REDIR = 10,
44 RPL_MAP = 15,
45 RPL_MAPMORE = 16,
46 RPL_MAPEND = 17,
47 RPL_YOURID = 42,
48
49 /*
50 * Numeric replies from server commands.
51 * These are currently in the range 200-399.
52 */
53 RPL_TRACELINK = 200,
54 RPL_TRACECONNECTING = 201,
55 RPL_TRACEHANDSHAKE = 202,
56 RPL_TRACEUNKNOWN = 203,
57 RPL_TRACEOPERATOR = 204,
58 RPL_TRACEUSER = 205,
59 RPL_TRACESERVER = 206,
60 RPL_TRACENEWTYPE = 208,
61 RPL_TRACECLASS = 209,
62 RPL_STATSLINKINFO = 211,
63 RPL_STATSCOMMANDS = 212,
64 RPL_STATSCLINE = 213,
65 RPL_STATSNLINE = 214,
66 RPL_STATSILINE = 215,
67 RPL_STATSKLINE = 216,
68 RPL_STATSQLINE = 217,
69 RPL_STATSYLINE = 218,
70 RPL_ENDOFSTATS = 219,
71
72 /*
73 * Note ircu uses 217 for STATSPLINE frip. conflict
74 * as RPL_STATSQLINE was used in old 2.8 for Q line
75 * I'm going to steal 220 for now *sigh* -Dianora
76 */
77 RPL_STATSPLINE = 220,
78 RPL_UMODEIS = 221,
79 RPL_STATSDLINE = 225,
80 RPL_STATSALINE = 226,
81 RPL_STATSLLINE = 241,
82 RPL_STATSUPTIME = 242,
83 RPL_STATSOLINE = 243,
84 RPL_STATSHLINE = 244,
85 RPL_STATSTLINE = 245,
86 RPL_STATSSERVICE = 246,
87 RPL_STATSXLINE = 247,
88 RPL_STATSULINE = 248,
89 RPL_STATSDEBUG = 249,
90 RPL_STATSCONN = 250,
91 RPL_LUSERCLIENT = 251,
92 RPL_LUSEROP = 252,
93 RPL_LUSERUNKNOWN = 253,
94 RPL_LUSERCHANNELS = 254,
95 RPL_LUSERME = 255,
96 RPL_ADMINME = 256,
97 RPL_ADMINLOC1 = 257,
98 RPL_ADMINLOC2 = 258,
99 RPL_ADMINEMAIL = 259,
100 RPL_ENDOFTRACE = 262,
101 RPL_LOAD2HI = 263,
102 RPL_LOCALUSERS = 265,
103 RPL_GLOBALUSERS = 266,
104 RPL_WHOISCERTFP = 276,
105 RPL_ACCEPTLIST = 281,
106 RPL_ENDOFACCEPT = 282,
107 RPL_NEWHOSTIS = 285,
108 RPL_AWAY = 301,
109 RPL_USERHOST = 302,
110 RPL_ISON = 303,
111 RPL_UNAWAY = 305,
112 RPL_NOWAWAY = 306,
113 RPL_WHOISREGNICK = 307,
114 RPL_WHOISUSER = 311,
115 RPL_WHOISSERVER = 312,
116 RPL_WHOISOPERATOR = 313,
117 RPL_WHOWASUSER = 314,
118 RPL_ENDOFWHO = 315,
119 RPL_WHOISIDLE = 317,
120 RPL_ENDOFWHOIS = 318,
121 RPL_WHOISCHANNELS = 319,
122 RPL_LISTSTART = 321,
123 RPL_LIST = 322,
124 RPL_LISTEND = 323,
125 RPL_CHANNELMODEIS = 324,
126 RPL_CREATIONTIME = 329,
127 RPL_WHOISACCOUNT = 330,
128 RPL_NOTOPIC = 331,
129 RPL_TOPIC = 332,
130 RPL_TOPICWHOTIME = 333,
131 RPL_WHOISTEXT = 337,
132 RPL_WHOISACTUALLY = 338,
133 RPL_INVITING = 341,
134 RPL_INVITELIST = 346,
135 RPL_ENDOFINVITELIST = 347,
136 RPL_EXCEPTLIST = 348,
137 RPL_ENDOFEXCEPTLIST = 349,
138 RPL_VERSION = 351,
139 RPL_WHOREPLY = 352,
140 RPL_NAMREPLY = 353,
141 RPL_CLOSING = 362,
142 RPL_CLOSEEND = 363,
143 RPL_LINKS = 364,
144 RPL_ENDOFLINKS = 365,
145 RPL_ENDOFNAMES = 366,
146 RPL_BANLIST = 367,
147 RPL_ENDOFBANLIST = 368,
148 RPL_ENDOFWHOWAS = 369,
149 RPL_INFO = 371,
150 RPL_MOTD = 372,
151 RPL_INFOSTART = 373,
152 RPL_ENDOFINFO = 374,
153 RPL_MOTDSTART = 375,
154 RPL_ENDOFMOTD = 376,
155 RPL_WHOISMODES = 379,
156 RPL_YOUREOPER = 381,
157 RPL_REHASHING = 382,
158 RPL_RSACHALLENGE = 386,
159 RPL_TIME = 391,
160
161 /*
162 * Errors are in the range from 400-599 currently and are grouped by what
163 * commands they come from.
164 */
165 ERR_NOSUCHNICK = 401,
166 ERR_NOSUCHSERVER = 402,
167 ERR_NOSUCHCHANNEL = 403,
168 ERR_CANNOTSENDTOCHAN = 404,
169 ERR_TOOMANYCHANNELS = 405,
170 ERR_WASNOSUCHNICK = 406,
171 ERR_TOOMANYTARGETS = 407,
172 ERR_NOCTRLSONCHAN = 408,
173 ERR_NOORIGIN = 409,
174 ERR_INVALIDCAPCMD = 410,
175 ERR_NORECIPIENT = 411,
176 ERR_NOTEXTTOSEND = 412,
177 ERR_NOTOPLEVEL = 413,
178 ERR_WILDTOPLEVEL = 414,
179 ERR_UNKNOWNCOMMAND = 421,
180 ERR_NOMOTD = 422,
181 ERR_NOADMININFO = 423,
182 ERR_NONICKNAMEGIVEN = 431,
183 ERR_ERRONEUSNICKNAME = 432,
184 ERR_NICKNAMEINUSE = 433,
185 ERR_NICKCOLLISION = 436,
186 ERR_UNAVAILRESOURCE = 437,
187 ERR_NICKTOOFAST = 438,
188 ERR_SERVICESDOWN = 440,
189 ERR_USERNOTINCHANNEL = 441,
190 ERR_NOTONCHANNEL = 442,
191 ERR_USERONCHANNEL = 443,
192 ERR_NOTREGISTERED = 451,
193 ERR_ACCEPTFULL = 456,
194 ERR_ACCEPTEXIST = 457,
195 ERR_ACCEPTNOT = 458,
196 ERR_NEEDMOREPARAMS = 461,
197 ERR_ALREADYREGISTRED = 462,
198 ERR_PASSWDMISMATCH = 464,
199 ERR_YOUREBANNEDCREEP = 465,
200 ERR_ONLYSERVERSCANCHANGE = 468,
201 ERR_OPERONLYCHAN = 470,
202 ERR_CHANNELISFULL = 471,
203 ERR_UNKNOWNMODE = 472,
204 ERR_INVITEONLYCHAN = 473,
205 ERR_BANNEDFROMCHAN = 474,
206 ERR_BADCHANNELKEY = 475,
207 ERR_NEEDREGGEDNICK = 477,
208 ERR_BANLISTFULL = 478,
209 ERR_BADCHANNAME = 479,
210 ERR_SSLONLYCHAN = 480,
211 ERR_NOPRIVILEGES = 481,
212 ERR_CHANOPRIVSNEEDED = 482,
213 ERR_CANTKILLSERVER = 483,
214 ERR_RESTRICTED = 484,
215 ERR_CHANBANREASON = 485,
216 ERR_NONONREG = 486,
217 ERR_NOOPERHOST = 491,
218 ERR_UMODEUNKNOWNFLAG = 501,
219 ERR_USERSDONTMATCH = 502,
220 ERR_GHOSTEDCLIENT = 503,
221 ERR_USERNOTONSERV = 504,
222 ERR_TOOMANYWATCH = 512,
223 ERR_WRONGPONG = 513,
224 ERR_LISTSYNTAX = 521,
225 ERR_HELPNOTFOUND = 524,
226 RPL_LOGON = 600,
227 RPL_LOGOFF = 601,
228 RPL_WATCHOFF = 602,
229 RPL_WATCHSTAT = 603,
230 RPL_NOWON = 604,
231 RPL_NOWOFF = 605,
232 RPL_WATCHLIST = 606,
233 RPL_ENDOFWATCHLIST = 607,
234 RPL_WHOISSECURE = 671,
235 RPL_MODLIST = 702,
236 RPL_ENDOFMODLIST = 703,
237 RPL_HELPSTART = 704,
238 RPL_HELPTXT = 705,
239 RPL_ENDOFHELP = 706,
240 RPL_ETRACE = 709,
241 RPL_KNOCK = 710,
242 RPL_KNOCKDLVR = 711,
243 ERR_TOOMANYKNOCK = 712,
244 ERR_CHANOPEN = 713,
245 ERR_KNOCKONCHAN = 714,
246 RPL_TARGUMODEG = 716,
247 RPL_TARGNOTIFY = 717,
248 RPL_UMODEGMSG = 718,
249 ERR_NOPRIVS = 723,
250 ERR_LAST_ERR_MSG = 999
251 };
252
253 extern const char *numeric_form(enum irc_numerics);
254 #endif /* INCLUDED_numeric_h */

Properties

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