From: Nathan Bruning Date: Tue, 15 Jul 2014 10:04:06 +0000 (+0200) Subject: Fix configuraton with custom nodetree plugin X-Git-Tag: 14.07~6^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99c28ab4d6e9cb64ce96f4f3ab7d6c97650356e9;p=ejabberd Fix configuraton with custom nodetree plugin --- diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 168169a95..3dbbabe9f 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -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),