Vote for Our Mud on TMC!











help > hooks > pre quit
---

Hook Name :         pre_quit
Called From :       /obj/player/quit.h
Resolution Method : HOOK_OR

Sample Header :

int my_pre_quit(string tag, object ob);

Arguments :

tag - "pre_quit"
ob - The player that is about to quit.

Return Value : 1 to prevent quit, 0 to allow it.

Description :

When a player is attempting to quit this hook is called.  If any 
pre_quit hook returns 1 then the quit is canceled.  Note that
no message is displayed as to the quit being canceled so the
pre_quit hook should display a message when quit is prevented.

---

Last modified : May 04, 2002,  Nero