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

({{mIRC|$N-|$1-}})
Line 12: Line 12:
 
== {{mIRC|local identifiers}} ==
 
== {{mIRC|local identifiers}} ==
  
=== {{mIRC|$N-|$1-}} ===
+
=== {{mIRC|$N|$1-}} ===
  
 
Returns the server disconnect message that is passed to mIRC.
 
Returns the server disconnect message that is passed to mIRC.

Revision as of 15:36, 9 February 2016

Template:mIRC Guide The ON DISCONNECT event triggers when mIRC has disconnected from an IRC server.

Synopsis

ON <level>:DISCONNECT:<commands>

Parameters

  • <level> - The corresponding access levels for the event to trigger.
  • <commands> - The commands to be performed when the event listener's criteria is met.

local identifiers

$1-

Returns the server disconnect message that is passed to mIRC.

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 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also