From WikiChip
On Part - Events - mIRC
< mirc‎ | on events
Revision as of 07:59, 6 February 2024 by KindOne (talk | contribs) (Parameters: Link access levels)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The ON PART event triggers when the mIRC client, or a remote user, parts/leaves a channel.

Synopsis

ON <level>:PART:<#[,#]>:<commands>

Parameters

<level>The corresponding access levels for the event to trigger.

<#,[,#]>The text that to be matched. Can also be a wildcard.

[,#]Specific channel names

<commands>The commands to be performed when the event listener's criteria is met.

Examples

Once the local mIRC client has left a channel, echo to the channel window the total users inside of the channel:

ON ME:*:PART:#:echo # You have left # $+ .

The above example makes use of the ON ME event, which triggers only when the local mIRC client triggers the event, not remote users.

When a user leaves, send them a notice:

ON *:PART:#:msg # So sorry to see you go, $nick $+ !

Compatibility

Added: mIRC v2.1a
Added on: 28 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also