Merge pull request #179 from xmppjingle/master

Remove Global Hooks upon module stop
This commit is contained in:
badlop 2016-07-25 13:01:38 +02:00 committed by GitHub
commit d3f0218dc4
1 changed files with 3 additions and 1 deletions

View File

@ -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) ->
[].