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

(On disconnect event - mIRC)
 
m (Bot: Adding a template (template:mIRC on event list))
Line 29: Line 29:
 
* [[$network identifier - mIRC|$network]]
 
* [[$network identifier - mIRC|$network]]
 
* [[$server identifier - mIRC|$server]]
 
* [[$server identifier - mIRC|$server]]
 +
{{mIRC on event list}}
  
[[Category:mIRC on events]]
+
[[Category:MIRC on events]]

Revision as of 00:02, 4 July 2014

The ON DISCONNECT event triggers when mIRC has disconnected from an IRC server. The $1- identifier is filled with any server disconnect message that is passed to mIRC.

Synopsis

ON <level>:DISCONNECT:<commands>

Parameters

<level>The level for the event to trigger.

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

Examples

; Echo network, and time
; when mIRC disconnected
ON *:DISCONNECT:echo -a Disconnected from $network on $asctime(dddd mmmm $+(ddoo,$chr(44), yyyy)) at $asctime(hh:mmtt) $+ . Server disconnect reason: $1-

The following is an example of what will be displayed when mIRC has disconnected from a server:

Disconnected from DALnet on Tuesday June 24th, 2014 at 02:06pm.

The $asctime identifier has been used here in order to specifically format the current date and time.

Compatibility

Added: mIRC v2.1a

Added On: 28/02/95

See Also