From 5d90292849029c2f2e35d61840d85678d4644e21 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Tue, 19 Jul 2016 15:33:17 +0300 Subject: [PATCH] Fix hooks de-registration --- src/mod_vcard.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod_vcard.erl b/src/mod_vcard.erl index de9fce00d..f738648d6 100644 --- a/src/mod_vcard.erl +++ b/src/mod_vcard.erl @@ -115,9 +115,9 @@ loop(Host, ServerHost) -> loop(Host, ServerHost); stop -> ejabberd_router:unregister_route(Host), - ejabberd_hooks:delete(disco_local_items, Host, ?MODULE, disco_items, 50), - ejabberd_hooks:delete(disco_local_features, Host, ?MODULE, disco_features, 50), - ejabberd_hooks:delete(disco_local_identity, Host, ?MODULE, disco_identity, 50), + ejabberd_hooks:delete(disco_local_items, Host, ?MODULE, disco_items, 100), + ejabberd_hooks:delete(disco_local_features, Host, ?MODULE, disco_features, 100), + ejabberd_hooks:delete(disco_local_identity, Host, ?MODULE, disco_identity, 100), gen_iq_handler:remove_iq_handler(ejabberd_local, Host, ?NS_SEARCH), gen_iq_handler:remove_iq_handler(ejabberd_local, Host, ?NS_VCARD), gen_iq_handler:remove_iq_handler(ejabberd_local, Host, ?NS_DISCO_ITEMS),