Site Tools


on_disconnect

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 by 127.0.0.1