-
Notifications
You must be signed in to change notification settings - Fork 24
Events list
Below is a list of events you may listen on.
General notes:
-
User refers to an instance of
\WildPHP\Core\Users\User
-
Channel refers to an instance of
\WildPHP\Core\Channels\Channel
-
Queue refers to an instance of
\WildPHP\Core\Connection\Queue
- Any IRC message has the respective class in
\WildPHP\Core\Connection\IRCMessages
.
This list is sorted alphabetically based on the class they are emitted in.
- Bootstrap
- WildPHP\Core\Channels\ChannelStateManager
- WildPHP\Core\Commands\CommandHandler
- WildPHP\Core\Connection\CapabilityHandler
- WildPHP\Core\Connection\IrcConnection
- WildPHP\Core\Connection\Parser
- WildPHP\Core\Connection\PingPongHandler
- WildPHP\Core\Connection\SASL
- WildPHP\Core\Users\UserStateManager
Introduced in: WildPHP 3.0 Beta 1
Parameters passed: None
Emits after all modules have been initialized.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
- Channel $channel
-
string
$newTopic
Emits when a User joins the specified Channel.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
string
$command - Channel $source
- User $user
-
array
$args - ComponentContainer $container
Emits when a command is called by a user. This event does NOT mean that a command was executed, just that one was found.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
array
$acknowledgedCapabilities - Queue $queue
Emits when one or more capabilities have been acknowledged by the server.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
- Queue $queue
Emits when one or more capabilities have been acknowledged by the server.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed: none
Called when capability negotiation has ended (CAP END
was sent).
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
array
$capabilities - Queue $queue
Emits when the list of available capabilities has been received from the server.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
array
$notAcknowledgedCapabilities - Queue $queue
Emits after one or more capabilities have NOT been acknowledged by the server.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
- Queue $queue
Emits after one or more capabilities have NOT been acknowledged by the server.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
- QueueItem $item
- ComponentContainer $container
Emits after the QueueItem is added to the Queue (e.g. a message is sent)
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
- Queue $queue
Emits after the connection is set up.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
string
$data
Emits after data has been received from the socket. This event MUST NOT be used to listen for incoming IRC data (use irc.line.in
instead).
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
string
$data
Emits after data has been sent to the socket.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed: none
Emits after the socket has been closed.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
- IncomingIrcMessage $ircMessage
- Queue $queue
Emits after data has been received and parsed into an instance of IncomingIrcMessage.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
{message verb}
$ircMessage - Queue $queue
Emits after data has been received and parsed, but emits only on a specific verb.
For example, when listening for PRIVMSG
messages, one can listen to irc.line.in.privmsg
.
When a specialized message class cannot be found in WildPHP\Core\Connection\IRCMessages
,
this event carries an instance of IncomingIrcMessage instead.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
string
$line
Emits after a full (and probably consumable) line of data is received. This event MUST NOT be used to listen for incoming IRC data (use irc.line.in
instead).
Introduced in: WildPHP 3.0 Beta 1
Parameters passed: none
Emits after the connection timeout has been reached and the connection should be forcibly closed.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
array
$array - Queue $queue
The first parameter is an array to maintain compatibility with the CapabilityHandler class.
Emits after SASL authentication has passed and authentication was successful.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
Emits when the user details have been updated for the specified user.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
Emits after a user's host has been updated (requires chghost capability).
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
Emits when a User joins the specified Channel.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
Emits when a User parts or is removed from the specified Channel.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
2. string
$mode
3. User $user
4. Queue $queue
Emits when the mode is changed for a user.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
Emits when the mode is changed for a user in a channel.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
Emits when the nickname has been changed from $oldNickname to $newNickname for the specified user.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
Emits when the specified user has quit from the server.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
- User $user
Emits when a User has had its information updated (e.g. by a WHOX reply).