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

(Created On quit event - mIRC)
 
m (Bot: Adding a template (template:mIRC on event list))
Line 24: Line 24:
 
* [[On join - mIRC|ON JOIN]]
 
* [[On join - mIRC|ON JOIN]]
 
* [[On part - mIRC|ON PART]]
 
* [[On part - mIRC|ON PART]]
 +
{{mIRC on event list}}
  
[[Category:mIRC on events]]
+
[[Category:MIRC on events]]

Revision as of 00:08, 4 July 2014

The ON QUIT event is triggered when a user quits/disconnects from the IRC network while on the same channel as the local mIRC client.

Synopsis

ON <level>:QUIT:<commands>

<level>The level for the event to trigger.

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

Example

When a user disconnects, stop mIRC's default message and, instead, echo to the active window a custom message:

ON ^*:QUIT: {
  echo -a * $nick just disconnected from $network
  haltdef
}

Compatibility

Added: mIRC v2.1a

Added On: 28/02/95

See Also