+2008-12-18 Christophe Romain <christophe.romain@process-one.net>
+
+ * src/mod_pubsub/mod_pubsub.erl: Check option of the nodetree instead
+ of checking configuration (thanks to Eric Cestari)(EJAB-737)
+
2008-12-16 Badlop <badlop@process-one.net>
* src/mod_pubsub/mod_pubsub.erl: Fix update pubsub tables from
ok ->
node_call(Type, create_node, [Host, Node, Owner]);
{error, ?ERR_CONFLICT} ->
- case ets:lookup(gen_mod:get_module_proc(ServerHost, pubsub_state), nodetree) of
- [{nodetree, nodetree_virtual}] -> node_call(Type, create_node, [Host, Node, Owner]);
+ case proplists:get_value(virtual_tree, tree_call(Host, options, [])) of
+ true -> node_call(Type, create_node, [Host, Node, Owner]);
_ -> {error, ?ERR_CONFLICT}
end;
Error ->