Difference between revisions of "On disconnect"

From Scriptwiki
Jump to: navigation, search
 
(No difference)

Latest revision as of 17:36, 29 March 2006

The on DISCONNECT event triggers when you quit or are disconnected from an IRC Server.

on <level>:DISCONNECT:<commands>

You can use this event to unset variables or delete / free hashtables.

Example

The following example will unset all variables beginning with "moo" whenever you close mIRC or are disconnected.

on *:DISCONNECT: {
 unset %moo*
}

See Also

  • on connect triggers when you connect to an IRC Server
  • on quit triggers whenever someone quits from IRC