]> granicus.if.org Git - ejabberd/commitdiff
Add contributed modules code path on start
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 13 Mar 2015 11:20:25 +0000 (12:20 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 13 Mar 2015 11:20:25 +0000 (12:20 +0100)
src/ext_mod.erl

index 11597ef24034b4fd7004c8433ed603a8ec5149e7..99f5026d342a0e020f4263990f80865a3c5052a5 100644 (file)
@@ -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 ->