Erebot  latest
A modular IRC bot for PHP 7.0+
Irc2.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 
27 class Irc2 extends \Erebot\NumericProfile\Base
28 {
30  const RPL_WELCOME = 1;
31 
33  const RPL_YOURHOST = 2;
34 
36  const RPL_CREATED = 3;
37 
39  const RPL_MYINFO = 4;
40 
42  const RPL_ISUPPORT = 5;
43 
45  const RPL_BOUNCE = 10;
46 
48  const RPL_MAP = 15;
49 
51  const RPL_MAPEND = 17;
52 
54  const RPL_MAPSTART = 18;
55 
57  const RPL_HELLO = 20;
58 
60  const RPL_YOURID = 42;
61 
63  const RPL_SAVENICK = 43;
64 
66  const ERR_NOSUCHNICK = 401;
67 
69  const ERR_NOSUCHSERVER = 402;
70 
72  const ERR_NOSUCHCHANNEL = 403;
73 
75  const ERR_CANNOTSENDTOCHAN = 404;
76 
78  const ERR_TOOMANYCHANNELS = 405;
79 
81  const ERR_WASNOSUCHNICK = 406;
82 
84  const ERR_TOOMANYTARGETS = 407;
85 
87  const ERR_NOSUCHSERVICE = 408;
88 
90  const ERR_NOORIGIN = 409;
91 
93  const ERR_NORECIPIENT = 411;
94 
96  const ERR_NOTEXTTOSEND = 412;
97 
99  const ERR_NOTOPLEVEL = 413;
100 
102  const ERR_WILDTOPLEVEL = 414;
103 
105  const ERR_BADMASK = 415;
106 
108  const ERR_TOOMANYMATCHES = 416;
109 
111  const ERR_UNKNOWNCOMMAND = 421;
112 
114  const ERR_NOMOTD = 422;
115 
117  const ERR_NOADMININFO = 423;
118 
120  const ERR_FILEERROR = 424;
121 
123  const ERR_NONICKNAMEGIVEN = 431;
124 
127 
129  const ERR_NICKNAMEINUSE = 433;
130 
132  const ERR_SERVICENAMEINUSE = 434;
133 
135  const ERR_SERVICECONFUSED = 435;
136 
138  const ERR_NICKCOLLISION = 436;
139 
141  const ERR_UNAVAILRESOURCE = 437;
142 
144  const ERR_USERNOTINCHANNEL = 441;
145 
147  const ERR_NOTONCHANNEL = 442;
148 
150  const ERR_USERONCHANNEL = 443;
151 
153  const ERR_NOLOGIN = 444;
154 
156  const ERR_SUMMONDISABLED = 445;
157 
159  const ERR_USERSDISABLED = 446;
160 
162  const ERR_NOTREGISTERED = 451;
163 
165  const ERR_NEEDMOREPARAMS = 461;
166 
168  const ERR_ALREADYREGISTRED = 462;
169 
171  const ERR_NOPERMFORHOST = 463;
172 
174  const ERR_PASSWDMISMATCH = 464;
175 
177  const ERR_YOUREBANNEDCREEP = 465;
178 
180  const ERR_YOUWILLBEBANNED = 466;
181 
183  const ERR_KEYSET = 467;
184 
186  const ERR_CHANNELISFULL = 471;
187 
189  const ERR_UNKNOWNMODE = 472;
190 
192  const ERR_INVITEONLYCHAN = 473;
193 
195  const ERR_BANNEDFROMCHAN = 474;
196 
198  const ERR_BADCHANNELKEY = 475;
199 
201  const ERR_BADCHANMASK = 476;
202 
204  const ERR_NOCHANMODES = 477;
205 
207  const ERR_BANLISTFULL = 478;
208 
210  const ERR_NOPRIVILEGES = 481;
211 
213  const ERR_CHANOPRIVSNEEDED = 482;
214 
216  const ERR_CANTKILLSERVER = 483;
217 
219  const ERR_RESTRICTED = 484;
220 
222  const ERR_UNIQOPRIVSNEEDED = 485;
223 
225  const ERR_NOOPERHOST = 491;
226 
228  const ERR_NOSERVICEHOST = 492;
229 
231  const ERR_STATSKLINE = 499;
232 
234  const ERR_UMODEUNKNOWNFLAG = 501;
235 
237  const ERR_USERSDONTMATCH = 502;
238 
240  const RPL_NONE = 300;
241 
243  const RPL_AWAY = 301;
244 
246  const RPL_USERHOST = 302;
247 
249  const RPL_ISON = 303;
250 
252  const RPL_TEXT = 304;
253 
255  const RPL_UNAWAY = 305;
256 
258  const RPL_NOWAWAY = 306;
259 
261  const RPL_WHOISUSER = 311;
262 
264  const RPL_WHOISSERVER = 312;
265 
267  const RPL_WHOISOPERATOR = 313;
268 
270  const RPL_WHOWASUSER = 314;
271 
273  const RPL_ENDOFWHOWAS = 369;
274 
276  const RPL_WHOISCHANOP = 316;
277 
279  const RPL_WHOISIDLE = 317;
280 
282  const RPL_ENDOFWHOIS = 318;
283 
285  const RPL_WHOISCHANNELS = 319;
286 
288  const RPL_LISTSTART = 321;
289 
291  const RPL_LIST = 322;
292 
294  const RPL_LISTEND = 323;
295 
297  const RPL_CHANNELMODEIS = 324;
298 
300  const RPL_UNIQOPIS = 325;
301 
303  const RPL_NOTOPIC = 331;
304 
306  const RPL_TOPIC = 332;
307 
309  const RPL_TOPIC_WHO_TIME = 333;
310 
312  const RPL_INVITING = 341;
313 
315  const RPL_SUMMONING = 342;
316 
318  const RPL_REOPLIST = 344;
319 
321  const RPL_ENDOFREOPLIST = 345;
322 
324  const RPL_INVITELIST = 346;
325 
327  const RPL_ENDOFINVITELIST = 347;
328 
330  const RPL_EXCEPTLIST = 348;
331 
333  const RPL_ENDOFEXCEPTLIST = 349;
334 
336  const RPL_VERSION = 351;
337 
339  const RPL_WHOREPLY = 352;
340 
342  const RPL_ENDOFWHO = 315;
343 
345  const RPL_NAMREPLY = 353;
346 
348  const RPL_ENDOFNAMES = 366;
349 
351  const RPL_KILLDONE = 361;
352 
354  const RPL_CLOSING = 362;
355 
357  const RPL_CLOSEEND = 363;
358 
360  const RPL_LINKS = 364;
361 
363  const RPL_ENDOFLINKS = 365;
364 
366  const RPL_BANLIST = 367;
367 
369  const RPL_ENDOFBANLIST = 368;
370 
372  const RPL_INFO = 371;
373 
375  const RPL_MOTD = 372;
376 
378  const RPL_INFOSTART = 373;
379 
381  const RPL_ENDOFINFO = 374;
382 
384  const RPL_MOTDSTART = 375;
385 
387  const RPL_ENDOFMOTD = 376;
388 
390  const RPL_YOUREOPER = 381;
391 
393  const RPL_REHASHING = 382;
394 
396  const RPL_YOURESERVICE = 383;
397 
399  const RPL_MYPORTIS = 384;
400 
402  const RPL_NOTOPERANYMORE = 385;
403 
405  const RPL_TIME = 391;
406 
408  const RPL_USERSSTART = 392;
409 
411  const RPL_USERS = 393;
412 
414  const RPL_ENDOFUSERS = 394;
415 
417  const RPL_NOUSERS = 395;
418 
420  const RPL_TRACELINK = 200;
421 
423  const RPL_TRACECONNECTING = 201;
424 
426  const RPL_TRACEHANDSHAKE = 202;
427 
429  const RPL_TRACEUNKNOWN = 203;
430 
432  const RPL_TRACEOPERATOR = 204;
433 
435  const RPL_TRACEUSER = 205;
436 
438  const RPL_TRACESERVER = 206;
439 
441  const RPL_TRACESERVICE = 207;
442 
444  const RPL_TRACENEWTYPE = 208;
445 
447  const RPL_TRACECLASS = 209;
448 
450  const RPL_STATSLINKINFO = 211;
451 
453  const RPL_STATSCOMMANDS = 212;
454 
456  const RPL_STATSCLINE = 213;
457 
459  const RPL_STATSNLINE = 214;
460 
462  const RPL_STATSILINE = 215;
463 
465  const RPL_STATSKLINE = 216;
466 
468  const RPL_STATSQLINE = 217;
469 
471  const RPL_STATSYLINE = 218;
472 
474  const RPL_ENDOFSTATS = 219;
475 
477  const RPL_UMODEIS = 221;
478 
480  const RPL_SERVICEINFO = 231;
481 
483  const RPL_ENDOFSERVICES = 232;
484 
486  const RPL_SERVICE = 233;
487 
489  const RPL_SERVLIST = 234;
490 
492  const RPL_SERVLISTEND = 235;
493 
495  const RPL_STATSIAUTH = 239;
496 
498  const RPL_STATSVLINE = 240;
499 
501  const RPL_STATSLLINE = 241;
502 
504  const RPL_STATSUPTIME = 242;
505 
507  const RPL_STATSOLINE = 243;
508 
510  const RPL_STATSHLINE = 244;
511 
513  const RPL_STATSSLINE = 245;
514 
516  const RPL_STATSPING = 246;
517 
519  const RPL_STATSBLINE = 247;
520 
522  const RPL_STATSDEFINE = 248;
523 
525  const RPL_STATSDEBUG = 249;
526 
528  const RPL_STATSDLINE = 250;
529 
531  const RPL_LUSERCLIENT = 251;
532 
534  const RPL_LUSEROP = 252;
535 
537  const RPL_LUSERUNKNOWN = 253;
538 
540  const RPL_LUSERCHANNELS = 254;
541 
543  const RPL_LUSERME = 255;
544 
546  const RPL_ADMINME = 256;
547 
549  const RPL_ADMINLOC1 = 257;
550 
552  const RPL_ADMINLOC2 = 258;
553 
555  const RPL_ADMINEMAIL = 259;
556 
558  const RPL_TRACEEND = 262;
559 
561  const RPL_TRYAGAIN = 263;
562 
564  const RPL_LOCALUSERS = 265;
565 
567  const RPL_GLOBALUSERS = 266;
568 
570  const RPL_ETRACEFULL = 708;
571 
573  const RPL_ETRACEEND = 759;
574 }
Numeric profile for irc2-based IRC servers.
Definition: Irc2.php:27