ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/numeric.h
Revision: 8279
Committed: Tue Feb 20 19:30:13 2018 UTC (8 years, 5 months ago) by michael
Content type: text/x-chdr
File size: 8333 byte(s)
Log Message:
- Update copyright years

File Contents

# User Rev Content
1 adx 30 /*
2 michael 2848 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 adx 30 *
4 michael 8279 * Copyright (c) 1997-2018 ircd-hybrid development team
5 adx 30 *
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 michael 4565 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 adx 30 * USA
20     */
21    
22 michael 2848 /*! \file numeric.h
23     * \brief Declarations of numeric replies.
24     * \version $Id$
25     */
26    
27 adx 30 #ifndef INCLUDED_numeric_h
28     #define INCLUDED_numeric_h
29    
30 michael 3573
31     #define SND_EXPLICIT 0x40000000 /**< First argument is a pattern to use */
32    
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
39 michael 2848 enum irc_numerics
40     {
41     RPL_WELCOME = 1,
42     RPL_YOURHOST = 2,
43     RPL_CREATED = 3,
44     RPL_MYINFO = 4,
45     RPL_ISUPPORT = 5,
46     RPL_REDIR = 10,
47     RPL_MAP = 15,
48     RPL_MAPMORE = 16,
49     RPL_MAPEND = 17,
50 michael 1834
51 michael 2848 /*
52     * Numeric replies from server commands.
53     * These are currently in the range 200-399.
54     */
55     RPL_TRACELINK = 200,
56     RPL_TRACECONNECTING = 201,
57     RPL_TRACEHANDSHAKE = 202,
58     RPL_TRACEUNKNOWN = 203,
59     RPL_TRACEOPERATOR = 204,
60     RPL_TRACEUSER = 205,
61     RPL_TRACESERVER = 206,
62     RPL_TRACENEWTYPE = 208,
63     RPL_TRACECLASS = 209,
64     RPL_STATSLINKINFO = 211,
65     RPL_STATSCOMMANDS = 212,
66     RPL_STATSCLINE = 213,
67     RPL_STATSILINE = 215,
68     RPL_STATSKLINE = 216,
69     RPL_STATSQLINE = 217,
70     RPL_STATSYLINE = 218,
71     RPL_ENDOFSTATS = 219,
72     RPL_STATSPLINE = 220,
73     RPL_UMODEIS = 221,
74     RPL_STATSDLINE = 225,
75     RPL_STATSALINE = 226,
76     RPL_STATSLLINE = 241,
77     RPL_STATSUPTIME = 242,
78     RPL_STATSOLINE = 243,
79     RPL_STATSHLINE = 244,
80     RPL_STATSTLINE = 245,
81     RPL_STATSSERVICE = 246,
82     RPL_STATSXLINE = 247,
83     RPL_STATSULINE = 248,
84     RPL_STATSDEBUG = 249,
85     RPL_STATSCONN = 250,
86     RPL_LUSERCLIENT = 251,
87     RPL_LUSEROP = 252,
88     RPL_LUSERUNKNOWN = 253,
89     RPL_LUSERCHANNELS = 254,
90     RPL_LUSERME = 255,
91     RPL_ADMINME = 256,
92     RPL_ADMINLOC1 = 257,
93     RPL_ADMINLOC2 = 258,
94     RPL_ADMINEMAIL = 259,
95 michael 7046 RPL_TRACEEND = 262,
96 michael 2848 RPL_LOAD2HI = 263,
97     RPL_LOCALUSERS = 265,
98     RPL_GLOBALUSERS = 266,
99     RPL_WHOISCERTFP = 276,
100     RPL_ACCEPTLIST = 281,
101     RPL_ENDOFACCEPT = 282,
102     RPL_AWAY = 301,
103     RPL_USERHOST = 302,
104     RPL_ISON = 303,
105     RPL_UNAWAY = 305,
106     RPL_NOWAWAY = 306,
107     RPL_WHOISREGNICK = 307,
108     RPL_WHOISUSER = 311,
109     RPL_WHOISSERVER = 312,
110     RPL_WHOISOPERATOR = 313,
111     RPL_WHOWASUSER = 314,
112     RPL_ENDOFWHO = 315,
113     RPL_WHOISIDLE = 317,
114     RPL_ENDOFWHOIS = 318,
115     RPL_WHOISCHANNELS = 319,
116     RPL_LISTSTART = 321,
117     RPL_LIST = 322,
118     RPL_LISTEND = 323,
119     RPL_CHANNELMODEIS = 324,
120     RPL_CREATIONTIME = 329,
121     RPL_WHOISACCOUNT = 330,
122     RPL_NOTOPIC = 331,
123     RPL_TOPIC = 332,
124     RPL_TOPICWHOTIME = 333,
125 michael 3767 RPL_WHOISTEXT = 335,
126     RPL_INVITELIST = 336,
127     RPL_ENDOFINVITELIST = 337,
128 michael 2848 RPL_WHOISACTUALLY = 338,
129     RPL_INVITING = 341,
130 michael 3767 RPL_INVEXLIST = 346,
131     RPL_ENDOFINVEXLIST = 347,
132 michael 2848 RPL_EXCEPTLIST = 348,
133     RPL_ENDOFEXCEPTLIST = 349,
134     RPL_VERSION = 351,
135     RPL_WHOREPLY = 352,
136     RPL_NAMREPLY = 353,
137     RPL_CLOSING = 362,
138     RPL_CLOSEEND = 363,
139     RPL_LINKS = 364,
140     RPL_ENDOFLINKS = 365,
141     RPL_ENDOFNAMES = 366,
142     RPL_BANLIST = 367,
143     RPL_ENDOFBANLIST = 368,
144     RPL_ENDOFWHOWAS = 369,
145     RPL_INFO = 371,
146     RPL_MOTD = 372,
147     RPL_INFOSTART = 373,
148     RPL_ENDOFINFO = 374,
149     RPL_MOTDSTART = 375,
150     RPL_ENDOFMOTD = 376,
151     RPL_WHOISMODES = 379,
152     RPL_YOUREOPER = 381,
153     RPL_REHASHING = 382,
154     RPL_TIME = 391,
155 michael 4557 RPL_VISIBLEHOST = 396,
156 adx 30
157 michael 2848 /*
158     * Errors are in the range from 400-599 currently and are grouped by what
159     * commands they come from.
160     */
161     ERR_NOSUCHNICK = 401,
162     ERR_NOSUCHSERVER = 402,
163     ERR_NOSUCHCHANNEL = 403,
164     ERR_CANNOTSENDTOCHAN = 404,
165     ERR_TOOMANYCHANNELS = 405,
166     ERR_WASNOSUCHNICK = 406,
167     ERR_TOOMANYTARGETS = 407,
168     ERR_NOCTRLSONCHAN = 408,
169     ERR_NOORIGIN = 409,
170     ERR_INVALIDCAPCMD = 410,
171     ERR_NORECIPIENT = 411,
172     ERR_NOTEXTTOSEND = 412,
173     ERR_NOTOPLEVEL = 413,
174     ERR_WILDTOPLEVEL = 414,
175     ERR_UNKNOWNCOMMAND = 421,
176     ERR_NOMOTD = 422,
177 michael 4313 ERR_TOOMANYAWAY = 429,
178 michael 2848 ERR_NONICKNAMEGIVEN = 431,
179     ERR_ERRONEUSNICKNAME = 432,
180     ERR_NICKNAMEINUSE = 433,
181     ERR_NICKCOLLISION = 436,
182     ERR_NICKTOOFAST = 438,
183     ERR_SERVICESDOWN = 440,
184     ERR_USERNOTINCHANNEL = 441,
185     ERR_NOTONCHANNEL = 442,
186     ERR_USERONCHANNEL = 443,
187     ERR_NOTREGISTERED = 451,
188     ERR_ACCEPTFULL = 456,
189     ERR_ACCEPTEXIST = 457,
190     ERR_ACCEPTNOT = 458,
191     ERR_NEEDMOREPARAMS = 461,
192     ERR_ALREADYREGISTRED = 462,
193     ERR_PASSWDMISMATCH = 464,
194     ERR_YOUREBANNEDCREEP = 465,
195     ERR_ONLYSERVERSCANCHANGE = 468,
196     ERR_CHANNELISFULL = 471,
197     ERR_UNKNOWNMODE = 472,
198     ERR_INVITEONLYCHAN = 473,
199     ERR_BANNEDFROMCHAN = 474,
200     ERR_BADCHANNELKEY = 475,
201     ERR_NEEDREGGEDNICK = 477,
202     ERR_BANLISTFULL = 478,
203     ERR_BADCHANNAME = 479,
204     ERR_NOPRIVILEGES = 481,
205     ERR_CHANOPRIVSNEEDED = 482,
206     ERR_CANTKILLSERVER = 483,
207     ERR_CHANBANREASON = 485,
208     ERR_NONONREG = 486,
209 michael 5477 ERR_SSLONLYCHAN = 489,
210 michael 2848 ERR_NOOPERHOST = 491,
211 michael 5464 ERR_NOCTCP = 492,
212 michael 2848 ERR_UMODEUNKNOWNFLAG = 501,
213     ERR_USERSDONTMATCH = 502,
214     ERR_USERNOTONSERV = 504,
215     ERR_TOOMANYWATCH = 512,
216     ERR_WRONGPONG = 513,
217 michael 5418 ERR_OPERONLYCHAN = 520,
218 michael 2848 ERR_LISTSYNTAX = 521,
219 michael 4508 ERR_WHOLIMEXCEED = 523,
220 michael 2848 ERR_HELPNOTFOUND = 524,
221     RPL_LOGON = 600,
222     RPL_LOGOFF = 601,
223     RPL_WATCHOFF = 602,
224     RPL_WATCHSTAT = 603,
225     RPL_NOWON = 604,
226     RPL_NOWOFF = 605,
227     RPL_WATCHLIST = 606,
228     RPL_ENDOFWATCHLIST = 607,
229     RPL_WHOISSECURE = 671,
230     RPL_MODLIST = 702,
231     RPL_ENDOFMODLIST = 703,
232     RPL_HELPSTART = 704,
233     RPL_HELPTXT = 705,
234     RPL_ENDOFHELP = 706,
235     RPL_ETRACE = 709,
236     RPL_KNOCK = 710,
237     RPL_KNOCKDLVR = 711,
238     ERR_TOOMANYKNOCK = 712,
239     ERR_CHANOPEN = 713,
240     ERR_KNOCKONCHAN = 714,
241 michael 3762 ERR_TOOMANYINVITE = 715,
242 michael 2848 RPL_TARGUMODEG = 716,
243     RPL_TARGNOTIFY = 717,
244     RPL_UMODEGMSG = 718,
245     ERR_NOPRIVS = 723,
246 michael 8084 RPL_ETRACEEND = 759,
247 michael 2848 ERR_LAST_ERR_MSG = 999
248     };
249 michael 1834
250 michael 3109 extern const char *numeric_form(enum irc_numerics);
251 michael 1834 #endif /* INCLUDED_numeric_h */

Properties

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