From the NannyMUD documentation

LAST CHANGE

200502-07

NAME

        quit_hook - Quit hooks

LOCATION

        /obj/player

AVAILABILITY

        Any object can use hooks.

FUNCTIONS

OTHER FUNCTIONS

        quit_hook
        block_quit_hook
        pre_quit_hook

DESCRIPTION

        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.

NOTE

        The hook is also called in the case when the statue destructs
        after being linkdead for too long.

SEE ALSO

        connection_hook in hooks/connection_hook
        connection_hook in std/line/line_control

FUNCTION


NAME

        quit_hook - Quit hook

SYNTAX

        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 hook

SYNTAX

        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 hook

SYNTAX

        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.