From 48c5e733218343f7aac347e0147692601ff57bef Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Fri, 11 Sep 2015 14:32:58 +0200 Subject: [PATCH] ext_mod must be started before ejabberd_config --- src/ext_mod.erl | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/ext_mod.erl b/src/ext_mod.erl index 002c5dd91..4b9ddafab 100644 --- a/src/ext_mod.erl +++ b/src/ext_mod.erl @@ -42,15 +42,10 @@ %% -- ejabberd init and commands start() -> - case is_contrib_allowed() of - true -> - [code:add_patha(module_ebin_dir(Module)) - || {Module, _} <- installed()], - application:start(inets), - ejabberd_commands:register_commands(commands()); - false -> - ok - end. + [code:add_patha(module_ebin_dir(Module)) + || {Module, _} <- installed()], + application:start(inets), + ejabberd_commands:register_commands(commands()). stop() -> ejabberd_commands:unregister_commands(commands()). -- 2.40.0