User Tools

Site Tools



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

Link to this comparison view

on_disconnect [2007/03/02 21:43] (current)
Line 1: Line 1:
 +[[on]] [<​modes>​]disconnect [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +This hook is triggered whenever you are 
 +  1) [[kill]]ed by an operator, ​
 +  2) Run a command that sends data to the server, in a window that is not connected to a server
 +  3) You [[disconnect]] from your last server.
 +and perhaps for other reasons in the future.
 +|$*  | The string "​Killed by <​oper>​ (<​reason>​) or the string "No Connection to <​server>"​ or the string "​Disconnected by user request",​ respectively |
 +======Default behavior:​======
 +If you don't suppress this event, the client will format and display a 
 +message to your screen.
 +To customize the disconnection message:
 +   on ^disconnect * (server) {
 +      xecho -b Disconnected from $server at $Z
 +   }
on_disconnect.txt ยท Last modified: 2007/03/02 21:43 (external edit)