From the NannyMUD documentation
2001-01-05
NAME
add_hook - generic info on adding hooksLOCATION
/obj/hook.c and any object inheriting this.SYNTAX
varargs int add_hook(string hook_name, object obj)DESCRIPTION
This function registers a hook named 'hook_name' in an object. If the argument 'obj' is given, the hook will be registered in that object, else it will be registered in the object that called add_hook.RETURN VALUES
1 on success0 on failureNOTE
Objects residing in /open and /log cannot use hooks due to security reasons.