Remove Global Hooks upon module stop
This commit is contained in:
parent
ed3853ccf9
commit
0aa5516e04
|
@ -58,7 +58,9 @@ start(Host, Opts) ->
|
|||
|
||||
stop(Host) ->
|
||||
[ejabberd_hooks:delete(Hook, Host, ?MODULE, Hook, 20)
|
||||
|| Hook <- ?HOOKS].
|
||||
|| Hook <- ?HOOKS],
|
||||
[ejabberd_hooks:delete(Hook, Host, ?MODULE, Hook, 20)
|
||||
|| Hook <- ?GLOBAL_HOOKS].
|
||||
|
||||
depends(_Host, _Opts) ->
|
||||
[].
|
||||
|
|
Loading…
Reference in New Issue