25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Fix configuraton with custom nodetree plugin

This commit is contained in:
Nathan Bruning 2014-07-15 12:04:06 +02:00
parent 2d6a838905
commit 99c28ab4d6

View File

@ -387,7 +387,7 @@ init_send_loop(ServerHost, State) ->
init_plugins(Host, ServerHost, Opts) ->
TreePlugin =
jlib:binary_to_atom(<<(?TREE_PREFIX)/binary,
(gen_mod:get_opt(nodetree, Opts, fun(A) when is_list(A) -> A end,
(gen_mod:get_opt(nodetree, Opts, fun(A) when is_binary(A) -> A end,
?STDTREE))/binary>>),
?DEBUG("** tree plugin is ~p", [TreePlugin]),
TreePlugin:init(Host, ServerHost, Opts),