ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/include/numeric.h
Revision: 9552
Committed: Sun Jul 26 07:33:37 2020 UTC (5 years, 11 months ago) by michael
Content type: text/x-chdr
File size: 8503 byte(s)
Log Message:
- Implemented channel mode 'K'. KNOCK cannot be used on channels with that mode set.

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 9102 * Copyright (c) 1997-2020 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 4564 * 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 3574
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 michael 8452 RPL_STATSPSEUDO = 227,
77 michael 2848 RPL_STATSLLINE = 241,
78     RPL_STATSUPTIME = 242,
79     RPL_STATSOLINE = 243,
80     RPL_STATSHLINE = 244,
81     RPL_STATSTLINE = 245,
82     RPL_STATSSERVICE = 246,
83     RPL_STATSXLINE = 247,
84     RPL_STATSULINE = 248,
85     RPL_STATSDEBUG = 249,
86     RPL_STATSCONN = 250,
87     RPL_LUSERCLIENT = 251,
88     RPL_LUSEROP = 252,
89     RPL_LUSERUNKNOWN = 253,
90     RPL_LUSERCHANNELS = 254,
91     RPL_LUSERME = 255,
92     RPL_ADMINME = 256,
93     RPL_ADMINLOC1 = 257,
94     RPL_ADMINLOC2 = 258,
95     RPL_ADMINEMAIL = 259,
96 michael 7045 RPL_TRACEEND = 262,
97 michael 2848 RPL_LOAD2HI = 263,
98     RPL_LOCALUSERS = 265,
99     RPL_GLOBALUSERS = 266,
100     RPL_WHOISCERTFP = 276,
101     RPL_ACCEPTLIST = 281,
102     RPL_ENDOFACCEPT = 282,
103     RPL_AWAY = 301,
104     RPL_USERHOST = 302,
105     RPL_ISON = 303,
106     RPL_UNAWAY = 305,
107     RPL_NOWAWAY = 306,
108     RPL_WHOISREGNICK = 307,
109     RPL_WHOISUSER = 311,
110     RPL_WHOISSERVER = 312,
111     RPL_WHOISOPERATOR = 313,
112     RPL_WHOWASUSER = 314,
113     RPL_ENDOFWHO = 315,
114     RPL_WHOISIDLE = 317,
115     RPL_ENDOFWHOIS = 318,
116     RPL_WHOISCHANNELS = 319,
117     RPL_LISTSTART = 321,
118     RPL_LIST = 322,
119     RPL_LISTEND = 323,
120     RPL_CHANNELMODEIS = 324,
121     RPL_CREATIONTIME = 329,
122     RPL_WHOISACCOUNT = 330,
123     RPL_NOTOPIC = 331,
124     RPL_TOPIC = 332,
125     RPL_TOPICWHOTIME = 333,
126 michael 3766 RPL_WHOISTEXT = 335,
127     RPL_INVITELIST = 336,
128     RPL_ENDOFINVITELIST = 337,
129 michael 2848 RPL_WHOISACTUALLY = 338,
130     RPL_INVITING = 341,
131 michael 3766 RPL_INVEXLIST = 346,
132     RPL_ENDOFINVEXLIST = 347,
133 michael 2848 RPL_EXCEPTLIST = 348,
134     RPL_ENDOFEXCEPTLIST = 349,
135     RPL_VERSION = 351,
136     RPL_WHOREPLY = 352,
137     RPL_NAMREPLY = 353,
138     RPL_CLOSING = 362,
139     RPL_CLOSEEND = 363,
140     RPL_LINKS = 364,
141     RPL_ENDOFLINKS = 365,
142     RPL_ENDOFNAMES = 366,
143     RPL_BANLIST = 367,
144     RPL_ENDOFBANLIST = 368,
145     RPL_ENDOFWHOWAS = 369,
146     RPL_INFO = 371,
147     RPL_MOTD = 372,
148     RPL_INFOSTART = 373,
149     RPL_ENDOFINFO = 374,
150     RPL_MOTDSTART = 375,
151     RPL_ENDOFMOTD = 376,
152     RPL_WHOISMODES = 379,
153     RPL_YOUREOPER = 381,
154     RPL_REHASHING = 382,
155     RPL_TIME = 391,
156 michael 4558 RPL_VISIBLEHOST = 396,
157 adx 30
158 michael 2848 /*
159     * Errors are in the range from 400-599 currently and are grouped by what
160     * commands they come from.
161     */
162     ERR_NOSUCHNICK = 401,
163     ERR_NOSUCHSERVER = 402,
164     ERR_NOSUCHCHANNEL = 403,
165     ERR_CANNOTSENDTOCHAN = 404,
166     ERR_TOOMANYCHANNELS = 405,
167     ERR_WASNOSUCHNICK = 406,
168     ERR_TOOMANYTARGETS = 407,
169     ERR_NOCTRLSONCHAN = 408,
170     ERR_NOORIGIN = 409,
171     ERR_INVALIDCAPCMD = 410,
172     ERR_NORECIPIENT = 411,
173     ERR_NOTEXTTOSEND = 412,
174     ERR_NOTOPLEVEL = 413,
175     ERR_WILDTOPLEVEL = 414,
176     ERR_UNKNOWNCOMMAND = 421,
177     ERR_NOMOTD = 422,
178 michael 4314 ERR_TOOMANYAWAY = 429,
179 michael 2848 ERR_NONICKNAMEGIVEN = 431,
180     ERR_ERRONEUSNICKNAME = 432,
181     ERR_NICKNAMEINUSE = 433,
182 michael 9291 ERR_BANNICKCHANGE = 435,
183 michael 2848 ERR_NICKCOLLISION = 436,
184     ERR_NICKTOOFAST = 438,
185     ERR_SERVICESDOWN = 440,
186     ERR_USERNOTINCHANNEL = 441,
187     ERR_NOTONCHANNEL = 442,
188     ERR_USERONCHANNEL = 443,
189 michael 8467 ERR_NONICKCHANGE = 447,
190 michael 2848 ERR_NOTREGISTERED = 451,
191     ERR_ACCEPTFULL = 456,
192     ERR_ACCEPTEXIST = 457,
193     ERR_ACCEPTNOT = 458,
194     ERR_NEEDMOREPARAMS = 461,
195     ERR_ALREADYREGISTRED = 462,
196     ERR_PASSWDMISMATCH = 464,
197     ERR_YOUREBANNEDCREEP = 465,
198     ERR_ONLYSERVERSCANCHANGE = 468,
199     ERR_CHANNELISFULL = 471,
200     ERR_UNKNOWNMODE = 472,
201     ERR_INVITEONLYCHAN = 473,
202     ERR_BANNEDFROMCHAN = 474,
203     ERR_BADCHANNELKEY = 475,
204     ERR_NEEDREGGEDNICK = 477,
205     ERR_BANLISTFULL = 478,
206     ERR_BADCHANNAME = 479,
207 michael 9552 ERR_CANNOTKNOCK = 480,
208 michael 2848 ERR_NOPRIVILEGES = 481,
209     ERR_CHANOPRIVSNEEDED = 482,
210     ERR_CANTKILLSERVER = 483,
211     ERR_CHANBANREASON = 485,
212     ERR_NONONREG = 486,
213 michael 9156 ERR_SECUREONLYCHAN = 489,
214 michael 2848 ERR_NOOPERHOST = 491,
215 michael 5463 ERR_NOCTCP = 492,
216 michael 2848 ERR_UMODEUNKNOWNFLAG = 501,
217     ERR_USERSDONTMATCH = 502,
218     ERR_USERNOTONSERV = 504,
219     ERR_TOOMANYWATCH = 512,
220     ERR_WRONGPONG = 513,
221 michael 5419 ERR_OPERONLYCHAN = 520,
222 michael 2848 ERR_LISTSYNTAX = 521,
223 michael 4509 ERR_WHOLIMEXCEED = 523,
224 michael 2848 ERR_HELPNOTFOUND = 524,
225     RPL_LOGON = 600,
226     RPL_LOGOFF = 601,
227     RPL_WATCHOFF = 602,
228     RPL_WATCHSTAT = 603,
229     RPL_NOWON = 604,
230     RPL_NOWOFF = 605,
231     RPL_WATCHLIST = 606,
232     RPL_ENDOFWATCHLIST = 607,
233     RPL_WHOISSECURE = 671,
234     RPL_MODLIST = 702,
235     RPL_ENDOFMODLIST = 703,
236     RPL_HELPSTART = 704,
237     RPL_HELPTXT = 705,
238     RPL_ENDOFHELP = 706,
239     RPL_ETRACE = 709,
240     RPL_KNOCK = 710,
241     RPL_KNOCKDLVR = 711,
242     ERR_TOOMANYKNOCK = 712,
243     ERR_CHANOPEN = 713,
244     ERR_KNOCKONCHAN = 714,
245 michael 3763 ERR_TOOMANYINVITE = 715,
246 michael 2848 RPL_TARGUMODEG = 716,
247     RPL_TARGNOTIFY = 717,
248     RPL_UMODEGMSG = 718,
249     ERR_NOPRIVS = 723,
250 michael 9233 ERR_INVALIDBAN = 743,
251 michael 8083 RPL_ETRACEEND = 759,
252 michael 2848 ERR_LAST_ERR_MSG = 999
253     };
254 michael 1834
255 michael 3109 extern const char *numeric_form(enum irc_numerics);
256 michael 1834 #endif /* INCLUDED_numeric_h */

Properties

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