User Tools

Site Tools


on_disconnect

Differences

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:
 +======Synopsis:​======
 +[[on]] [<​modes>​]disconnect [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +
 +======Description:​======
 +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.
 +
 +======Parameters:​======
 +|$*  | 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.
 +
 +======Examples:​======
 +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)