On unload: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 13: | Line 13: | ||
} | } | ||
This example would at first echo that the script is unloaded and then unset all variables beginning with ''xyz''. | This example would at first echo that the script is unloaded and then unset all variables beginning with ''xyz''. | ||
== See Also == | |||
* [[On_load|On load event]] triggers when you load the script the first time. | |||
* [[On_start|On start event]] is triggered when the mirc is started. | |||
[[Category:Events]] | [[Category:Events]] |
Latest revision as of 08:54, 2 July 2007
The on UNLOAD event triggers in a script when the script is unloaded.
on <level>:UNLOAD:<commands>
Read access levels to get more info about the <level> field.
You can use this event to allow a script to cleanup, e.g. unsetting variables it did need.
Example
on *:UNLOAD: { echo -a Script xyz just unloaded. unset %xyz* }
This example would at first echo that the script is unloaded and then unset all variables beginning with xyz.
See Also
- On load event triggers when you load the script the first time.
- On start event is triggered when the mirc is started.