From 99c28ab4d6e9cb64ce96f4f3ab7d6c97650356e9 Mon Sep 17 00:00:00 2001 From: Nathan Bruning Date: Tue, 15 Jul 2014 12:04:06 +0200 Subject: [PATCH] Fix configuraton with custom nodetree plugin --- src/mod_pubsub.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),