Erebot  latest
A modular IRC bot for PHP 7.0+
RFC2812.php
1 <?php
2 /*
3  This file is part of Erebot, a modular IRC bot written in PHP.
4 
5  Copyright © 2010 François Poirotte
6 
7  Erebot is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Erebot is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Erebot. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 namespace Erebot\NumericProfile;
22 
34 class RFC2812 extends \Erebot\NumericProfile\Base
35 {
37  const RPL_WELCOME = 1;
38 
40  const RPL_YOURHOST = 2;
41 
43  const RPL_CREATED = 3;
44 
46  const RPL_MYINFO = 4;
47 
48 /*
49  Left out as it conflicts with commonly supported RPL_ISUPPORT.
51  const RPL_BOUNCE = 5;
52 */
54  const RPL_ISUPPORT = 5;
55 
57  const RPL_USERHOST = 302;
58 
60  const RPL_ISON = 303;
61 
63  const RPL_AWAY = 301;
64 
66  const RPL_UNAWAY = 305;
67 
69  const RPL_NOWAWAY = 306;
70 
72  const RPL_WHOISUSER = 311;
73 
75  const RPL_WHOISSERVER = 312;
76 
78  const RPL_WHOISOPERATOR = 313;
79 
81  const RPL_WHOISIDLE = 317;
82 
84  const RPL_ENDOFWHOIS = 318;
85 
87  const RPL_WHOISCHANNELS = 319;
88 
90  const RPL_WHOWASUSER = 314;
91 
93  const RPL_ENDOFWHOWAS = 369;
94 
96  const RPL_LISTSTART = 321;
97 
99  const RPL_LIST = 322;
100 
102  const RPL_LISTEND = 323;
103 
105  const RPL_UNIQOPIS = 325;
106 
108  const RPL_CHANNELMODEIS = 324;
109 
111  const RPL_NOTOPIC = 331;
112 
114  const RPL_TOPIC = 332;
115 
117  const RPL_INVITING = 341;
118 
120  const RPL_SUMMONING = 342;
121 
123  const RPL_INVITELIST = 346;
124 
126  const RPL_ENDOFINVITELIST = 347;
127 
129  const RPL_EXCEPTLIST = 348;
130 
132  const RPL_ENDOFEXCEPTLIST = 349;
133 
135  const RPL_VERSION = 351;
136 
138  const RPL_WHOREPLY = 352;
139 
141  const RPL_ENDOFWHO = 315;
142 
144  const RPL_NAMREPLY = 353;
145 
147  const RPL_ENDOFNAMES = 366;
148 
150  const RPL_LINKS = 364;
151 
153  const RPL_ENDOFLINKS = 365;
154 
156  const RPL_BANLIST = 367;
157 
159  const RPL_ENDOFBANLIST = 368;
160 
162  const RPL_INFO = 371;
163 
165  const RPL_ENDOFINFO = 374;
166 
168  const RPL_MOTDSTART = 375;
169 
171  const RPL_MOTD = 372;
172 
174  const RPL_ENDOFMOTD = 376;
175 
177  const RPL_YOUREOPER = 381;
178 
180  const RPL_REHASHING = 382;
181 
183  const RPL_YOURESERVICE = 383;
184 
186  const RPL_TIME = 391;
187 
189  const RPL_USERSSTART = 392;
190 
192  const RPL_USERS = 393;
193 
195  const RPL_ENDOFUSERS = 394;
196 
198  const RPL_NOUSERS = 395;
199 
201  const RPL_TRACELINK = 200;
202 
204  const RPL_TRACECONNECTING = 201;
205 
207  const RPL_TRACEHANDSHAKE = 202;
208 
210  const RPL_TRACEUNKNOWN = 203;
211 
213  const RPL_TRACEOPERATOR = 204;
214 
216  const RPL_TRACEUSER = 205;
217 
219  const RPL_TRACESERVER = 206;
220 
222  const RPL_TRACESERVICE = 207;
223 
225  const RPL_TRACENEWTYPE = 208;
226 
228  const RPL_TRACECLASS = 209;
229 
231  const RPL_TRACERECONNECT = 210;
232 
234  const RPL_TRACELOG = 261;
235 
237  const RPL_TRACEEND = 262;
238 
240  const RPL_STATSLINKINFO = 211;
241 
243  const RPL_STATSCOMMANDS = 212;
244 
246  const RPL_ENDOFSTATS = 219;
247 
249  const RPL_STATSUPTIME = 242;
250 
252  const RPL_STATSOLINE = 243;
253 
255  const RPL_UMODEIS = 221;
256 
258  const RPL_SERVLIST = 234;
259 
261  const RPL_SERVLISTEND = 235;
262 
264  const RPL_LUSERCLIENT = 251;
265 
267  const RPL_LUSEROP = 252;
268 
270  const RPL_LUSERUNKNOWN = 253;
271 
273  const RPL_LUSERCHANNELS = 254;
274 
276  const RPL_LUSERME = 255;
277 
279  const RPL_ADMINME = 256;
280 
282  const RPL_ADMINLOC1 = 257;
283 
285  const RPL_ADMINLOC2 = 258;
286 
288  const RPL_ADMINEMAIL = 259;
289 
291  const RPL_TRYAGAIN = 263;
292 
294  const ERR_NOSUCHNICK = 401;
295 
297  const ERR_NOSUCHSERVER = 402;
298 
300  const ERR_NOSUCHCHANNEL = 403;
301 
303  const ERR_CANNOTSENDTOCHAN = 404;
304 
306  const ERR_TOOMANYCHANNELS = 405;
307 
309  const ERR_WASNOSUCHNICK = 406;
310 
312  const ERR_TOOMANYTARGETS = 407;
313 
315  const ERR_NOSUCHSERVICE = 408;
316 
318  const ERR_NOORIGIN = 409;
319 
321  const ERR_NORECIPIENT = 411;
322 
324  const ERR_NOTEXTTOSEND = 412;
325 
327  const ERR_NOTOPLEVEL = 413;
328 
330  const ERR_WILDTOPLEVEL = 414;
331 
333  const ERR_BADMASK = 415;
334 
335  // Initially missing from RFC 2812; part of the errata.
337  const ERR_TOOMANYMATCHES = 416;
338 
340  const ERR_UNKNOWNCOMMAND = 421;
341 
343  const ERR_NOMOTD = 422;
344 
346  const ERR_NOADMININFO = 423;
347 
349  const ERR_FILEERROR = 424;
350 
352  const ERR_NONICKNAMEGIVEN = 431;
353 
355  const ERR_ERRONEUSNICKNAME = 432;
356 
358  const ERR_NICKNAMEINUSE = 433;
359 
361  const ERR_NICKCOLLISION = 436;
362 
364  const ERR_UNAVAILRESOURCE = 437;
365 
367  const ERR_USERNOTINCHANNEL = 441;
368 
370  const ERR_NOTONCHANNEL = 442;
371 
373  const ERR_USERONCHANNEL = 443;
374 
376  const ERR_NOLOGIN = 444;
377 
379  const ERR_SUMMONDISABLED = 445;
380 
382  const ERR_USERSDISABLED = 446;
383 
385  const ERR_NOTREGISTERED = 451;
386 
388  const ERR_NEEDMOREPARAMS = 461;
389 
391  const ERR_ALREADYREGISTRED = 462;
392 
394  const ERR_NOPERMFORHOST = 463;
395 
397  const ERR_PASSWDMISMATCH = 464;
398 
400  const ERR_YOUREBANNEDCREEP = 465;
401 
403  const ERR_YOUWILLBEBANNED = 466;
404 
406  const ERR_KEYSET = 467;
407 
409  const ERR_CHANNELISFULL = 471;
410 
412  const ERR_UNKNOWNMODE = 472;
413 
415  const ERR_INVITEONLYCHAN = 473;
416 
418  const ERR_BANNEDFROMCHAN = 474;
419 
421  const ERR_BADCHANNELKEY = 475;
422 
424  const ERR_BADCHANMASK = 476;
425 
427  const ERR_NOCHANMODES = 477;
428 
430  const ERR_BANLISTFULL = 478;
431 
433  const ERR_NOPRIVILEGES = 481;
434 
436  const ERR_CHANOPRIVSNEEDED = 482;
437 
439  const ERR_CANTKILLSERVER = 483;
440 
442  const ERR_RESTRICTED = 484;
443 
446 
448  const ERR_NOOPERHOST = 491;
449 
451  const ERR_UMODEUNKNOWNFLAG = 501;
452 
454  const ERR_USERSDONTMATCH = 502;
455 }
Numeric profile for unknown IRC servers, based on RFC 2812.
Definition: RFC2812.php:34