mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Check option of the nodetree instead of checking configuration
SVN Revision: 1738
This commit is contained in:
parent
d3ddf10839
commit
e6535dcc67
@ -1,3 +1,8 @@
|
|||||||
|
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-17 Pablo Polvorin <pablo.polvorin@process-one.net>
|
2008-12-17 Pablo Polvorin <pablo.polvorin@process-one.net>
|
||||||
|
|
||||||
* src/mod_muc/mod_muc_room.erl: Fix bug in MUC invite.
|
* src/mod_muc/mod_muc_room.erl: Fix bug in MUC invite.
|
||||||
|
@ -1244,8 +1244,8 @@ create_node(Host, ServerHost, Node, Owner, GivenType, Access, Configuration) ->
|
|||||||
ok ->
|
ok ->
|
||||||
node_call(Type, create_node, [Host, Node, Owner]);
|
node_call(Type, create_node, [Host, Node, Owner]);
|
||||||
{error, 'conflict'} ->
|
{error, 'conflict'} ->
|
||||||
case ets:lookup(gen_mod:get_module_proc(ServerHost, pubsub_state), nodetree) of
|
case proplists:get_value(virtual_tree, tree_call(Host, options, [])) of
|
||||||
[{nodetree, nodetree_virtual}] -> node_call(Type, create_node, [Host, Node, Owner]);
|
true -> node_call(Type, create_node, [Host, Node, Owner]);
|
||||||
_ -> {error, 'conflict'}
|
_ -> {error, 'conflict'}
|
||||||
end;
|
end;
|
||||||
Error ->
|
Error ->
|
||||||
|
Loading…
Reference in New Issue
Block a user