Merge pull request #250 from Iperity/master

Fix configuraton with custom nodetree plugin
This commit is contained in:
Christophe Romain 2014-07-21 17:11:29 +02:00
commit 0579fc80ec
1 changed files with 1 additions and 1 deletions

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),