From the NannyMUD documentation

LAST CHANGE

2001-01-06

FUNCTION


NAME

        query_hook - check what hooks are set

LOCATION

	/obj/hook.c and any object inheriting this.

SYNTAX

	varargs mixed query_hook(string hook_name, int arg, object obj)

DESCRIPTION

	This function is used to make queries about hooks. There are several
	ways to do this. The result depends on what arguments you give.

	No arguments:
	  If called with no arguments at all, an array of all hooks that
	  are currently registered in the calling object is returned.

	One argument:
	  An array with all objects that has registered such a hook in the 
	  calling object is returned.

	Two arguments:
	  If the hook is registered in the calling object, 1 is returned else
	  you get a zero.

	Last argument set:
	  You get information about that object rather than the calling object.
	  

NOTE

	Objects residing in /open and /log cannot use hooks due to security
	reasons.

SEE ALSO

        add_hook in lfun/basic/add_hook
        add_hook in obj/hook

SEE ALSO

        remove_hook in lfun/basic/remove_hook
        remove_hook in obj/hook

SEE ALSO

        hooks in build/hooks