On disconnect

From Scriptwiki
Revision as of 17:36, 29 March 2006 by Doomie (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.


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

 unset %moo*

See Also

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