25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-13 15:16:49 +02:00

fix badmatch on remove_user on PEP nodes (EJAB-1649)

This commit is contained in:
Christophe Romain 2013-07-09 21:50:56 +02:00
parent 8621a8f006
commit 48819d163a
2 changed files with 5 additions and 7 deletions

View File

@ -144,12 +144,10 @@ create_node(NodeIdx, Owner) ->
).
delete_node(Removed) ->
{result, {_, _, Removed}} = node_hometree:delete_node(Removed),
{result, {[], Removed}}.
% case node_hometree:delete_node(Removed) of
% {result, {_, _, Removed}} -> {result, {[], Removed}};
% Error -> Error
% end.
case node_hometree:delete_node(Removed) of
{result, {_, _, Result}} -> {result, {[], Result}};
Error -> Error
end.
-spec(subscribe_node/8 ::
(

View File

@ -156,7 +156,7 @@ create_node(NodeIdx, Owner) ->
).
delete_node(Removed) ->
case node_hometree_odbc:delete_node(Removed) of
{result, {_, _, Removed}} -> {result, {[], Removed}};
{result, {_, _, Result}} -> {result, {[], Result}};
Error -> Error
end.