Commit 6f181acc authored by louiz’'s avatar louiz’

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

parent 524f7925
...@@ -185,6 +185,7 @@ void DisconnectUserStep2(XmppComponent* xmpp_component, AdhocSession& session, X ...@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment