summaryrefslogtreecommitdiff
path: root/src/mod_configure.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-22 19:46:47 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-22 19:46:47 +0300
commit3c4057ff553928d4e4ab40e410dbc6a478dd8206 (patch)
treea0272f84a1221db928cfd4c9f44d9bed6e196bc8 /src/mod_configure.erl
parentMake sure all hooks are called with proper host (diff)
Reload modules when reloading configuration file
Diffstat (limited to 'src/mod_configure.erl')
-rw-r--r--src/mod_configure.erl11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mod_configure.erl b/src/mod_configure.erl
index b1827be0..1af8bf6f 100644
--- a/src/mod_configure.erl
+++ b/src/mod_configure.erl
@@ -31,7 +31,7 @@
-behaviour(gen_mod).
--export([start/2, stop/1, get_local_identity/5,
+-export([start/2, stop/1, reload/3, get_local_identity/5,
get_local_features/5, get_local_items/5,
adhoc_local_items/4, adhoc_local_commands/4,
get_sm_identity/5, get_sm_features/5, get_sm_items/5,
@@ -89,11 +89,10 @@ stop(Host) ->
ejabberd_hooks:delete(disco_local_features, Host,
?MODULE, get_local_features, 50),
ejabberd_hooks:delete(disco_local_items, Host, ?MODULE,
- get_local_items, 50),
- gen_iq_handler:remove_iq_handler(ejabberd_local, Host,
- ?NS_COMMANDS),
- gen_iq_handler:remove_iq_handler(ejabberd_sm, Host,
- ?NS_COMMANDS).
+ get_local_items, 50).
+
+reload(_Host, _NewOpts, _OldOpts) ->
+ ok.
depends(_Host, _Opts) ->
[{mod_adhoc, hard}, {mod_last, soft}].