ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/numeric.h
Revision: 9775
Committed: Thu Dec 3 15:50:23 2020 UTC (5 years, 7 months ago) by michael
Content type: text/x-chdr
File size: 8401 byte(s)
Log Message:
User mode `B` has been implemented. Clients with that mode set are marked as a bot
in both `WHOIS` and `WHO`. This mode can only be set by IRC operators (as long as
the `bot` directive is set in `general::oper_only_umodes`), servers, and services.

This mode can for example be used to mark HOPM as official network bot.

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 9101 * 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 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 michael 8453 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 7046 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 9775 RPL_WHOISBOT = 335,
127 michael 3767 RPL_INVITELIST = 336,
128     RPL_ENDOFINVITELIST = 337,
129 michael 2848 RPL_WHOISACTUALLY = 338,
130 michael 9773 RPL_WHOISTEXT = 339,
131 michael 2848 RPL_INVITING = 341,
132 michael 3767 RPL_INVEXLIST = 346,
133     RPL_ENDOFINVEXLIST = 347,
134 michael 2848 RPL_EXCEPTLIST = 348,
135     RPL_ENDOFEXCEPTLIST = 349,
136     RPL_VERSION = 351,
137     RPL_WHOREPLY = 352,
138     RPL_NAMREPLY = 353,
139     RPL_CLOSING = 362,
140     RPL_CLOSEEND = 363,
141     RPL_LINKS = 364,
142     RPL_ENDOFLINKS = 365,
143     RPL_ENDOFNAMES = 366,
144     RPL_BANLIST = 367,
145     RPL_ENDOFBANLIST = 368,
146     RPL_ENDOFWHOWAS = 369,
147     RPL_INFO = 371,
148     RPL_MOTD = 372,
149     RPL_INFOSTART = 373,
150     RPL_ENDOFINFO = 374,
151     RPL_MOTDSTART = 375,
152     RPL_ENDOFMOTD = 376,
153     RPL_WHOISMODES = 379,
154     RPL_YOUREOPER = 381,
155     RPL_REHASHING = 382,
156     RPL_TIME = 391,
157 michael 4557 RPL_VISIBLEHOST = 396,
158 adx 30
159 michael 2848 /*
160     * Errors are in the range from 400-599 currently and are grouped by what
161     * commands they come from.
162     */
163     ERR_NOSUCHNICK = 401,
164     ERR_NOSUCHSERVER = 402,
165     ERR_NOSUCHCHANNEL = 403,
166     ERR_CANNOTSENDTOCHAN = 404,
167     ERR_TOOMANYCHANNELS = 405,
168     ERR_WASNOSUCHNICK = 406,
169     ERR_TOOMANYTARGETS = 407,
170     ERR_NOCTRLSONCHAN = 408,
171     ERR_NOORIGIN = 409,
172     ERR_INVALIDCAPCMD = 410,
173     ERR_NORECIPIENT = 411,
174     ERR_NOTEXTTOSEND = 412,
175     ERR_NOTOPLEVEL = 413,
176     ERR_WILDTOPLEVEL = 414,
177     ERR_UNKNOWNCOMMAND = 421,
178     ERR_NOMOTD = 422,
179 michael 4313 ERR_TOOMANYAWAY = 429,
180 michael 2848 ERR_NONICKNAMEGIVEN = 431,
181     ERR_ERRONEUSNICKNAME = 432,
182     ERR_NICKNAMEINUSE = 433,
183 michael 9292 ERR_BANNICKCHANGE = 435,
184 michael 2848 ERR_NICKCOLLISION = 436,
185     ERR_NICKTOOFAST = 438,
186     ERR_SERVICESDOWN = 440,
187     ERR_USERNOTINCHANNEL = 441,
188     ERR_NOTONCHANNEL = 442,
189     ERR_USERONCHANNEL = 443,
190 michael 8468 ERR_NONICKCHANGE = 447,
191 michael 2848 ERR_NOTREGISTERED = 451,
192     ERR_ACCEPTFULL = 456,
193     ERR_ACCEPTEXIST = 457,
194     ERR_ACCEPTNOT = 458,
195     ERR_NEEDMOREPARAMS = 461,
196     ERR_ALREADYREGISTRED = 462,
197     ERR_PASSWDMISMATCH = 464,
198     ERR_YOUREBANNEDCREEP = 465,
199     ERR_ONLYSERVERSCANCHANGE = 468,
200     ERR_CHANNELISFULL = 471,
201     ERR_UNKNOWNMODE = 472,
202     ERR_INVITEONLYCHAN = 473,
203     ERR_BANNEDFROMCHAN = 474,
204     ERR_BADCHANNELKEY = 475,
205     ERR_NEEDREGGEDNICK = 477,
206     ERR_BANLISTFULL = 478,
207     ERR_BADCHANNAME = 479,
208 michael 9553 ERR_CANNOTKNOCK = 480,
209 michael 2848 ERR_NOPRIVILEGES = 481,
210     ERR_CHANOPRIVSNEEDED = 482,
211     ERR_CANTKILLSERVER = 483,
212     ERR_CHANBANREASON = 485,
213     ERR_NONONREG = 486,
214 michael 9157 ERR_SECUREONLYCHAN = 489,
215 michael 2848 ERR_NOOPERHOST = 491,
216 michael 5464 ERR_NOCTCP = 492,
217 michael 2848 ERR_UMODEUNKNOWNFLAG = 501,
218     ERR_USERSDONTMATCH = 502,
219     ERR_USERNOTONSERV = 504,
220     ERR_WRONGPONG = 513,
221 michael 5418 ERR_OPERONLYCHAN = 520,
222 michael 2848 ERR_LISTSYNTAX = 521,
223 michael 4508 ERR_WHOLIMEXCEED = 523,
224 michael 2848 ERR_HELPNOTFOUND = 524,
225     RPL_WHOISSECURE = 671,
226     RPL_MODLIST = 702,
227     RPL_ENDOFMODLIST = 703,
228     RPL_HELPSTART = 704,
229     RPL_HELPTXT = 705,
230     RPL_ENDOFHELP = 706,
231     RPL_ETRACE = 709,
232     RPL_KNOCK = 710,
233     RPL_KNOCKDLVR = 711,
234     ERR_TOOMANYKNOCK = 712,
235     ERR_CHANOPEN = 713,
236     ERR_KNOCKONCHAN = 714,
237 michael 3762 ERR_TOOMANYINVITE = 715,
238 michael 2848 RPL_TARGUMODEG = 716,
239     RPL_TARGNOTIFY = 717,
240     RPL_UMODEGMSG = 718,
241     ERR_NOPRIVS = 723,
242 michael 9750 RPL_MONONLINE = 730,
243     RPL_MONOFFLINE = 731,
244     RPL_MONLIST = 732,
245     RPL_ENDOFMONLIST = 733,
246     ERR_MONLISTFULL = 734,
247 michael 9234 ERR_INVALIDBAN = 743,
248 michael 8084 RPL_ETRACEEND = 759,
249 michael 2848 ERR_LAST_ERR_MSG = 999
250     };
251 michael 1834
252 michael 3109 extern const char *numeric_form(enum irc_numerics);
253 michael 1834 #endif /* INCLUDED_numeric_h */

Properties

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