Fix ad-hoc “disconnect user” command. Do not add the <error/> on success

This commit is contained in:
Florent Le Coz
2014-06-25 15:36:06 +02:00
parent 524f7925c4
commit 6f181acc65
+1
View File
@@ -185,6 +185,7 @@ void DisconnectUserStep2(XmppComponent* xmpp_component, AdhocSession& session, X
note.set_inner(std::to_string(num) + " users have been disconnected."); note.set_inner(std::to_string(num) + " users have been disconnected.");
note.close(); note.close();
command_node.add_child(std::move(note)); command_node.add_child(std::move(note));
return;
} }
} }
XmlNode error(ADHOC_NS":error"); XmlNode error(ADHOC_NS":error");