]> granicus.if.org Git - ejabberd/commitdiff
ext_mod must be started before ejabberd_config
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 11 Sep 2015 12:32:58 +0000 (14:32 +0200)
committerBadlop <badlop@process-one.net>
Fri, 11 Sep 2015 13:14:12 +0000 (15:14 +0200)
src/ext_mod.erl

index 002c5dd91616aa7c05d8cab9d1b807c611750b59..4b9ddafab15718fc8510925582c20d62380b737d 100644 (file)
 %% -- 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()).