mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
mod_pubsub: Fix matching of set_node/1 result
nodetree_tree_sql:set_node/1 returns {result, NodeIdx} on success, not {ok, NodeIdx}. Thanks to Christophe Romain for spotting this.
This commit is contained in:
parent
1b5c50a384
commit
1794dd19d0
@ -3873,7 +3873,7 @@ set_configure(Host, Node, From, Els, Lang) ->
|
||||
set_node,
|
||||
[N#pubsub_node{options = NewOpts}])
|
||||
of
|
||||
{ok, Nidx} -> {result, ok};
|
||||
{result, Nidx} -> {result, ok};
|
||||
ok -> {result, ok};
|
||||
Err -> Err
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user