aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2015-03-13 12:20:25 +0100
committerChristophe Romain <christophe.romain@process-one.net>2015-03-13 12:20:25 +0100
commit5b9635cc07e8b8af69c81fa6114710a2e4b32d57 (patch)
tree049e442257bef1f22361dfd01d8d514b6dfa5bc2
parentRename module function to keep them grouped on help (diff)
Add contributed modules code path on start
-rw-r--r--src/ext_mod.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ext_mod.erl b/src/ext_mod.erl
index 11597ef24..99f5026d3 100644
--- a/src/ext_mod.erl
+++ b/src/ext_mod.erl
@@ -43,6 +43,8 @@
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 ->