From WikiChip
Difference between revisions of "mirc/on events/on part"
< mirc‎ | on events

m (Examples)
m (Bot: Adding a template (template:mIRC on event list))
Line 30: Line 30:
 
* [[on join - mIRC|ON JOIN]]
 
* [[on join - mIRC|ON JOIN]]
 
* [[list of on events - mIRC|ON EVENTS]]
 
* [[list of on events - mIRC|ON EVENTS]]
 +
{{mIRC on event list}}
  
[[Category:mIRC on events]]
+
[[Category:MIRC on events]]

Revision as of 00:07, 4 July 2014

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 level 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/02/95

See Also