1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-06 03:50:15 +02:00

ext_mod must be started before ejabberd_config

This commit is contained in:
Christophe Romain 2015-09-11 14:32:58 +02:00 committed by Badlop
parent 8c1864eca1
commit 48c5e73321

View file

@ -42,15 +42,10 @@
%% -- ejabberd init and commands %% -- ejabberd init and commands
start() -> start() ->
case is_contrib_allowed() of [code:add_patha(module_ebin_dir(Module))
true -> || {Module, _} <- installed()],
[code:add_patha(module_ebin_dir(Module)) application:start(inets),
|| {Module, _} <- installed()], ejabberd_commands:register_commands(commands()).
application:start(inets),
ejabberd_commands:register_commands(commands());
false ->
ok
end.
stop() -> stop() ->
ejabberd_commands:unregister_commands(commands()). ejabberd_commands:unregister_commands(commands()).