User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

on_exit [2007/03/02 21:53] (current)
Line 1: Line 1:
 +[[on]] [<​modes>​]exit [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +This hook is triggered when the client is about to exit normally (from the
 +[[QUIT]] command, etc.). ​ It is mostly useful for doing cleanup before exiting,
 +such as saving any current settings. ​ It cannot be used to trap the [[QUIT]]
 +command; the client will exit immediately after this hook is triggered..
 +|$* | Your quit message |
 +======Default behavior:​======
 +If you do not suppress this event, the client does nothing.
 +The client immediately begins shutdown procedures no matter what
 +you do or don't do with this event.
 +Save current settings before exiting:
 +   on ^exit "​*"​ {
 +      save all
 +      echo Now exiting ircII-${J}...
 +   }
on_exit.txt ยท Last modified: 2007/03/02 21:53 (external edit)