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

m (Bot: Automated text replacement (-Added On:.+\n?\n?\n?\n?\n? +))
m (Bot: Fixing compatibility)
Line 18: Line 18:
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v6.14
+
{{mIRC compatibility|6.14}}
  
 
== See Also ==
 
== See Also ==

Revision as of 03:40, 6 July 2014

The ON SOCKCLOSE event triggers when a socket connection is closed by the remote connection, not by the local mIRC client closing the connection.

Synopsis

ON <level>:SOCKCLOSE:<name>:<commands>

Parameters

<level>The level for the event to trigger.

<matchtext>The name of the target socket. Can be a wildcard.

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

Example

When the socket closes, echo that the socket has closed and some details about it to the active window:

ON *:SOCKCLOSE:*: {
  echo -a ::=> $socketname Connection to $socket($socketname).ip on port $socket($socketname).port terminated!
}

Compatibility

Added: mIRC v6.14
Added on: 03 Mar 2004
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also