From the NannyMUD documentation
200502-07
quit_hook - Quit hooks
/obj/player
Any object can use hooks.
quit_hook block_quit_hook pre_quit_hook
Those hooks are called when the player is about to quit the game. If the block_quit_hook returns 1, the player is prevented from leaving the game. No message is written to the player; you must take care of that yourself. The pre_quit_hook is called when a player tries to quit. If in a fight a one HB delay is executed before the actual quit. The quit_hook is called when the player is really quitting. It is called before the saving of the player.
The hook is also called in the case when the statue destructs after being linkdead for too long.
connection_hook in hooks/connection_hook connection_hook in std/line/line_control
NAME
quit_hook - Quit hookSYNTAX
void quit_hook(mixed arr, object player)DESCRIPTION
This hook is called when the player is about to quit the game. The quit_hook is called when the player is really quitting. It is called before the saving of the player. The argument 'arr' to the hook is empty.
FUNCTION
NAME
block_quit_hook - Block quit hookSYNTAX
int block_quit_hook(mixed arr, object player)DESCRIPTION
This hook is called when the player is about to quit the game. If the hook returns 1, the player is prevented from leaving the game. No messages are given to the player; you will have to take care of that. The 'arr' argument is empty.
FUNCTION
NAME
pre_quit_hook - Pre-quit hookSYNTAX
void pre_quit_hook(mixed arr, object player)DESCRIPTION
This hook is called when the player is about to quit the game. The pre_quit_hook is called when a player tries to quit. If in a fight, a one HB delay is executed before the actual quit. The argument 'arr' to the hook is empty.