diff options
author | louiz’ <louiz@louiz.org> | 2018-05-14 22:03:26 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-05-14 22:07:29 +0200 |
commit | ba61d2034058818fe76cef6b23f311259d37b3fe (patch) | |
tree | a7a86d887584e6338edda7230a20c84711b1de55 /src | |
parent | ed36c26598892c60c6d2c9a096f536cc1f4705cc (diff) | |
download | biboumi-ba61d2034058818fe76cef6b23f311259d37b3fe.tar.gz biboumi-ba61d2034058818fe76cef6b23f311259d37b3fe.tar.bz2 biboumi-ba61d2034058818fe76cef6b23f311259d37b3fe.tar.xz biboumi-ba61d2034058818fe76cef6b23f311259d37b3fe.zip |
Empty the <command/> nodes before reusing them in our responses
fix #3356
Diffstat (limited to 'src')
-rw-r--r-- | src/xmpp/biboumi_adhoc_commands.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmpp/biboumi_adhoc_commands.cpp b/src/xmpp/biboumi_adhoc_commands.cpp index b62dcfc..5a0aba8 100644 --- a/src/xmpp/biboumi_adhoc_commands.cpp +++ b/src/xmpp/biboumi_adhoc_commands.cpp @@ -116,6 +116,7 @@ void ConfigureGlobalStep1(XmppComponent&, AdhocSession& session, XmlNode& comman auto options = Database::get_global_options(owner.bare()); + command_node.delete_all_children(); XmlSubNode x(command_node, "jabber:x:data:x"); x["type"] = "form"; XmlSubNode title(x, "title"); @@ -223,6 +224,7 @@ void ConfigureIrcServerStep1(XmppComponent&, AdhocSession& session, XmlNode& com server_domain); auto commands = Database::get_after_connection_commands(options); + command_node.delete_all_children(); XmlSubNode x(command_node, "jabber:x:data:x"); x["type"] = "form"; XmlSubNode title(x, "title"); @@ -508,6 +510,7 @@ void insert_irc_channel_configuration_form(XmlNode& node, const Jid& requester, auto options = Database::get_irc_channel_options_with_server_default(requester.local + "@" + requester.domain, iid.get_server(), iid.get_local()); + node.delete_all_children(); XmlSubNode x(node, "jabber:x:data:x"); x["type"] = "form"; XmlSubNode title(x, "title"); |