On disconnect

From Scriptwiki
Revision as of 16: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.

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