From 0aa5516e04af7189bb4d2f9297e095ffca3bf9ff Mon Sep 17 00:00:00 2001 From: xmppjingle Date: Fri, 22 Jul 2016 15:00:38 -0300 Subject: [PATCH] Remove Global Hooks upon module stop --- mod_grafite/src/mod_grafite.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod_grafite/src/mod_grafite.erl b/mod_grafite/src/mod_grafite.erl index dbcca79..e707b39 100644 --- a/mod_grafite/src/mod_grafite.erl +++ b/mod_grafite/src/mod_grafite.erl @@ -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) -> [].