]> granicus.if.org Git - ejabberd/commitdiff
Fix configuraton with custom nodetree plugin
authorNathan Bruning <n.bruning@innovattic.com>
Tue, 15 Jul 2014 10:04:06 +0000 (12:04 +0200)
committerNathan Bruning <n.bruning@innovattic.com>
Tue, 15 Jul 2014 10:04:06 +0000 (12:04 +0200)
src/mod_pubsub.erl

index 168169a95190fbbdd84d6258c68bc7f27991036c..3dbbabe9fc24f90ee157f93992becaaed26b44f7 100644 (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),