Returns true when fn currently has a hookfunction hook installed on it.

Parameters

function
required
The function to check.

Returns

boolean
true if a hook is active on fn, false otherwise.

Behavior

The result reflects Athena’s hook bookkeeping: it is true between a hookfunction call and the matching restorefunction, and false at all other times.

Example

Errors