On disconnect
From Scriptwiki
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