summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-06-25 22:34:33 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-06-25 15:36:06 +0200
commit6f181acc6549c2a963cfa65e4b5eabf089522369 (patch)
tree2c0ea89427d4accb272d19eb67de7b9c21331efe /src
parent524f7925c44d9445cc4d3024406c80523a4ff9d4 (diff)
downloadbiboumi-6f181acc6549c2a963cfa65e4b5eabf089522369.tar.gz
biboumi-6f181acc6549c2a963cfa65e4b5eabf089522369.tar.bz2
biboumi-6f181acc6549c2a963cfa65e4b5eabf089522369.tar.xz
biboumi-6f181acc6549c2a963cfa65e4b5eabf089522369.zip
Fix ad-hoc “disconnect user” command. Do not add the <error/> on success
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/adhoc_command.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/adhoc_command.cpp b/src/xmpp/adhoc_command.cpp
index 67bc706..e1bfc97 100644
--- a/src/xmpp/adhoc_command.cpp
+++ b/src/xmpp/adhoc_command.cpp
@@ -185,6 +185,7 @@ void DisconnectUserStep2(XmppComponent* xmpp_component, AdhocSession& session, X
note.set_inner(std::to_string(num) + " users have been disconnected.");
note.close();
command_node.add_child(std::move(note));
+ return;
}
}
XmlNode error(ADHOC_NS":error");