Erebot  latest
A modular IRC bot for PHP 5.3+
InspIRCd.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 
28 {
30  const RPL_WELCOME = 1;
31 
33  const RPL_YOURHOSTIS = 2;
34 
36  const RPL_SERVERCREATED = 3;
37 
39  const RPL_SERVERVERSION = 4;
40 
42  const RPL_ISUPPORT = 5;
43 
45  const RPL_MAP = 6;
46 
48  const RPL_ENDMAP = 7;
49 
51  const RPL_SNOMASKIS = 8;
52 
54  const RPL_YOURUUID = 42;
55 
57  const RPL_UMODEIS = 221;
58 
60  const RPL_RULES = 232;
61 
63  const RPL_ADMINME = 256;
64 
66  const RPL_ADMINLOC1 = 257;
67 
69  const RPL_ADMINLOC2 = 258;
70 
72  const RPL_ADMINEMAIL = 259;
73 
75  const RPL_MAPUSERS = 270;
76 
78  const RPL_SYNTAX = 304;
79 
81  const RPL_UNAWAY = 305;
82 
84  const RPL_NOWAWAY = 306;
85 
87  const RPL_RULESTART = 308;
88 
90  const RPL_RULESEND = 309;
91 
93  const RPL_CHANNELMODEIS = 324;
94 
96  const RPL_CHANNELCREATED = 329;
97 
99  const RPL_NOTOPICSET = 331;
100 
102  const RPL_TOPIC = 332;
103 
105  const RPL_TOPICTIME = 333;
106 
108  const RPL_INVITING = 341;
109 
111  const RPL_INVITELIST = 346;
112 
114  const RPL_ENDOFINVITELIST = 347;
115 
117  const RPL_VERSION = 351;
118 
120  const RPL_NAMREPLY = 353;
121 
123  const RPL_ENDOFNAMES = 366;
124 
126  const RPL_INFO = 371;
127 
129  const RPL_ENDOFINFO = 374;
130 
132  const RPL_MOTD = 372;
133 
135  const RPL_MOTDSTART = 375;
136 
138  const RPL_ENDOFMOTD = 376;
139 
141  const RPL_YOUAREOPER = 381;
142 
144  const RPL_REHASHING = 382;
145 
147  const RPL_TIME = 391;
148 
151 
153  const ERR_NOSUCHNICK = 401;
154 
156  const ERR_NOSUCHSERVER = 402;
157 
159  const ERR_NOSUCHCHANNEL = 403;
160 
162  const ERR_CANNOTSENDTOCHAN = 404;
163 
165  const ERR_TOOMANYCHANNELS = 405;
166 
169 
171  const ERR_UNKNOWNCOMMAND = 421;
172 
174  const ERR_NOMOTD = 422;
175 
177  const ERR_NORULES = 434;
178 
180  const ERR_USERNOTINCHANNEL = 441;
181 
183  const ERR_NOTONCHANNEL = 442;
184 
186  const ERR_USERONCHANNEL = 443;
187 
189  const ERR_CANTCHANGENICK = 447;
190 
192  const ERR_NOTREGISTERED = 451;
193 
195  const ERR_NEEDMOREPARAMS = 461;
196 
199 
201  const ERR_BADCHANNELKEY = 475;
202 
204  const ERR_INVITEONLYCHAN = 473;
205 
207  const ERR_CHANNELISFULL = 471;
208 
210  const ERR_BANNEDFROMCHAN = 474;
211 
213  const ERR_NOPRIVILEGES = 481;
214 
216  const ERR_CHANOPRIVSNEEDED = 482;
217 
219  const ERR_ALLMUSTSSL = 490;
220 
222  const ERR_NOCTCPALLOWED = 492;
223 
225  const ERR_DELAYREJOIN = 495;
226 
228  const ERR_UNKNOWNSNOMASK = 501;
229 
231  const ERR_USERSDONTMATCH = 502;
232 
235 
237  const ERR_CANTSENDTOUSER = 531;
238 
240  const RPL_COMMANDS = 702;
241 
243  const RPL_COMMANDSEND = 703;
244 
246  const ERR_WORDFILTERED = 936;
247 
249  const ERR_CANTUNLOADMODULE = 972;
250 
252  const RPL_UNLOADEDMODULE = 973;
253 
255  const ERR_CANTLOADMODULE = 974;
256 
258  const RPL_LOADEDMODULE = 975;
259 }
const ERR_NOSUCHCHANNEL
Used to indicate the given channel name is invalid.
Definition: InspIRCd.php:159
const RPL_RULESEND
Alias for Erebot_Interface_Numerics::RPL_ENDOFRULES.
Definition: InspIRCd.php:90
const RPL_CHANNELCREATED
Alias for Erebot_Interface_Numerics::RPL_CREATIONTIME.
Definition: InspIRCd.php:96
const RPL_LOADEDMODULE
Returned after a module was successfully loaded.
Definition: InspIRCd.php:258
const RPL_SERVERCREATED
Alias for Erebot_Interface_Numerics::RPL_CREATED.
Definition: InspIRCd.php:36
const ERR_UNKNOWNCOMMAND
Returned to a registered client to indicate that the command sent is unknown by the server...
Definition: InspIRCd.php:171
const ERR_CANTLOADMODULE
Returned when the server could not load a module.
Definition: InspIRCd.php:255
const RPL_ADMINLOC1
Returned in response to an ADMIN message, usually giving information on the city, state and country w...
Definition: InspIRCd.php:66
const ERR_INVALIDCAPSUBCOMMAND
Returned when an invalid subcommand is used with the CAP command.
Definition: InspIRCd.php:168
Numeric profile for InspIRCd-based IRC servers.
Definition: InspIRCd.php:27
const RPL_UNAWAY
Sent went the client removes an AWAY message.
Definition: InspIRCd.php:81
const RPL_INVITING
Returned by the server to indicate that the attempted INVITE message was successful and is being pass...
Definition: InspIRCd.php:108
const ERR_CANTUNLOADMODULE
Returned when the server failed to unload a module.
Definition: InspIRCd.php:249
Abstract class that serves as a base to create a numeric profile for an IRCd server.
Definition: Base.php:33
const ERR_WORDFILTERED
Returned when a message has been blocked because it contained a censored word.
Definition: InspIRCd.php:246
const ERR_TOOMANYCHANNELS
Sent to a user when they have joined the maximum number of allowed channels and they try to join anot...
Definition: InspIRCd.php:165
const ERR_CHANOPRIVSNEEDED
Any command requiring &#39;chanop&#39; privileges (such as MODE messages) will return this error if the clien...
Definition: InspIRCd.php:216
const RPL_MAP
Sent as a response to a MAP command, with information on the network&#39;s map.
Definition: InspIRCd.php:45
const RPL_TOPICTIME
Alias for Erebot_Interface_Numerics::RPL_TOPICWHOTIME.
Definition: InspIRCd.php:105
const RPL_RULESTART
Marks the start of the server rules.
Definition: InspIRCd.php:87
const RPL_SYNTAX
Returned by InspIRCd to indicate a mistake regarding the syntax of a command and to provide a hint as...
Definition: InspIRCd.php:78
const RPL_ENDOFINVITELIST
Marks the end of the invite list.
Definition: InspIRCd.php:114
const ERR_USERONCHANNEL
Returned when a client tries to invite a user to a channel they are already on.
Definition: InspIRCd.php:186
const RPL_YOURUUID
Alias for Erebot_Interface_Numerics::RPL_YOURID.
Definition: InspIRCd.php:54
const ERR_NOTREGISTERED
Returned by the server to indicate that the client must be registered before the server will allow it...
Definition: InspIRCd.php:192
const ERR_USERSDONTMATCH
Error sent to any user trying to view or change the user mode for a user other than themselves...
Definition: InspIRCd.php:231
const ERR_NORULES
Sent to indicate that the server does not have any rules defined.
Definition: InspIRCd.php:177
const RPL_ISUPPORT
Gives information of the specific commands/options supported by the server.
Definition: InspIRCd.php:42
const ERR_ALREADYREGISTERED
Alias for Erebot_Interface_Numerics::ERR_ALREADYREGISTRED.
Definition: InspIRCd.php:198
const ERR_NEEDMOREPARAMS
Returned by the server by numerous commands to indicate to the client that it didn&#39;t supply enough pa...
Definition: InspIRCd.php:195
const RPL_YOUAREOPER
Alias for Erebot_Interface_Numerics::RPL_YOUREOPER.
Definition: InspIRCd.php:141
const ERR_BANNEDFROMCHAN
Returned when trying to JOIN a channel from which you&#39;ve been banned.
Definition: InspIRCd.php:210
const RPL_ADMINME
Returned as the first numeric in response to an ADMIN message.
Definition: InspIRCd.php:63
const RPL_CHANNELMODEIS
Sent in response to a MODE command or upon joining an IRC channel, containing the modes that are in e...
Definition: InspIRCd.php:93
const RPL_INVITELIST
The numeric is sent for every entry on the invite list for a channel when the invite list has been re...
Definition: InspIRCd.php:111
const ERR_UNKNOWNSNOMASK
Returned when someone tries to set an invalid server notice mask.
Definition: InspIRCd.php:228
const RPL_ADMINLOC2
Returned in response to an ADMIN message, usually giving information on the institution hosting the s...
Definition: InspIRCd.php:69
const ERR_CANTSENDTOUSER
Returned when a module on the IRC server prevents you from sending a message to some user...
Definition: InspIRCd.php:237
const RPL_VERSION
Reply by the server showing its version details.
Definition: InspIRCd.php:117
const RPL_COMMANDS
Sent in response to a COMMANDS command, one RPL_COMMAND is returned for each extra command supported ...
Definition: InspIRCd.php:240
const ERR_NOMOTD
Server&#39;s MOTD file could not be opened by the server.
Definition: InspIRCd.php:174
const RPL_NAMREPLY
This numeric is used in response to a NAMES command or upon joining a channel and contains the nickna...
Definition: InspIRCd.php:120
const RPL_TOPIC
Sent when joining a channel or issuing a TOPIC command; contains the current topic.
Definition: InspIRCd.php:102
const RPL_MAPUSERS
Gives statistics about certain metrics collected by the IRC server, like the number of users currentl...
Definition: InspIRCd.php:75
const RPL_YOURDISPLAYEDHOST
Returned by InspIRCd when a VHOST is used.
Definition: InspIRCd.php:150
const ERR_DELAYREJOIN
Returned to someone who tries to rejoin a channel right after being kicked while a delay is required...
Definition: InspIRCd.php:225
const ERR_NOPRIVILEGES
Any command requiring operator privileges to operate will return this error to indicate the attempt w...
Definition: InspIRCd.php:213
const RPL_REHASHING
If the REHASH option is used and an operator sends a REHASH message, an RPL_REHASHING is sent back to...
Definition: InspIRCd.php:144
const RPL_WELCOME
First numeric sent to a client after its connection (welcome message).
Definition: InspIRCd.php:30
const ERR_CHANNELISFULL
Returned when trying to JOIN a channel for which a limit has been set and reached.
Definition: InspIRCd.php:207
const RPL_ENDMAP
Alias for Erebot_Interface_Numerics::RPL_MAPEND.
Definition: InspIRCd.php:48
const ERR_CANNOTSENDTOCHAN
Sent by the server when attempting to send a PRIVMSG on a channel when you&#39;re not allowed to do so...
Definition: InspIRCd.php:162
const RPL_UMODEIS
To answer a query about a client&#39;s own mode, RPL_UMODEIS is sent back.
Definition: InspIRCd.php:57
const RPL_NOWAWAY
Sent when the client sets an AWAY message.
Definition: InspIRCd.php:84
const RPL_COMMANDSEND
Sent in response to a COMMANDS command, marks the end of the server&#39;s response.
Definition: InspIRCd.php:243
const RPL_RULES
This numeric is sent to you for every rule in use on this server.
Definition: InspIRCd.php:60
const RPL_SERVERVERSION
Alias for Erebot_Interface_Numerics::RPL_MYINFO.
Definition: InspIRCd.php:39
const RPL_YOURHOSTIS
Alias for Erebot_Interface_Numerics::RPL_YOURHOST.
Definition: InspIRCd.php:33
const ERR_ALLMUSTSSL
Returned when someone tries to add the +z mode on a channel but some users are not connected using a ...
Definition: InspIRCd.php:219
const RPL_UNLOADEDMODULE
Returned after a module was successfully unloaded.
Definition: InspIRCd.php:252
const ERR_NOTONCHANNEL
Returned by the server whenever a client tries to perform a channel affecting command for which the c...
Definition: InspIRCd.php:183
const ERR_USERNOTINCHANNEL
Returned by the server to indicate that the target user of the command is not on the given channel...
Definition: InspIRCd.php:180
const ERR_INVITEONLYCHAN
Returned when trying to JOIN a channel which requires an invitation and you&#39;ve not been invited...
Definition: InspIRCd.php:204
const RPL_NOTOPICSET
Alias for Erebot_Interface_Numerics::RPL_NOTOPIC.
Definition: InspIRCd.php:99
const ERR_NOSUCHNICK
Used to indicate the nickname parameter supplied to a command is currently unused.
Definition: InspIRCd.php:153
const ERR_BADCHANNELKEY
Returned when trying to JOIN a channel for which a key was set and was either not given or incorrect...
Definition: InspIRCd.php:201
const RPL_TIME
When replying to the TIME message, a server MUST send the reply using the RPL_TIME format below...
Definition: InspIRCd.php:147
const ERR_CANTCHANGENICK
Alias for Erebot_Interface_Numerics::ERR_NONICKCHANGE.
Definition: InspIRCd.php:189
const ERR_NOSUCHSERVER
Used to indicate the server name given currently doesn&#39;t exist.
Definition: InspIRCd.php:156
const RPL_ADMINEMAIL
Returned as the last numeric in response to an ADMIN message, giving an email where the server&#39;s admi...
Definition: InspIRCd.php:72