-
Notifications
You must be signed in to change notification settings - Fork 22
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.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
User
$user -
Channel
$channel -
Queue
$queue
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: 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:
2. Queue
$queue
Emits after the list of available capabilities has been updated.
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:
-
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:
-
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:
-
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: 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: none
Emits after SASL authentication was NOT successful (an error occurred).
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
User
$user -
Queue
$queue
Emits when the user details have been updated for the specified user.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
User
$user -
string
$newUsername -
string
$newHostname -
Queue
$queue
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:
-
Channel
$channel -
string
$mode -
User
$user -
Queue
$queue
Emits when the mode is changed for a user in a channel.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
User
$user -
string
$oldNickname -
string
$newNickname -
Queue
$queue
Emits when the nickname has been changed from $oldNickname to $newNickname for the specified user.
Introduced in: WildPHP 3.0 Beta 1
Parameters passed:
-
User
$user -
Queue
$queue
Emits when the specified user has quit from the server.