From WikiChip
mirc/on events/on sockclose
< mirc‎ | on events
Revision as of 23:35, 25 June 2014 by Zmodem (talk | contribs) (Created On sockclose event - mIRC)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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/03/2004

See Also