diff options
author | louiz’ <louiz@louiz.org> | 2022-03-10 23:23:47 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2022-03-10 23:23:47 +0100 |
commit | 0061298dd0945f7f67e7fa340c6649b179c804d5 (patch) | |
tree | 23f178ae4f3d988c0c712c79e3d7156fcc5a33e0 /src/xmpp/adhoc_command.cpp | |
parent | 18b6006e30c26a2fb6196e3b16420de74a654a73 (diff) | |
download | biboumi-master.tar.gz biboumi-master.tar.bz2 biboumi-master.tar.xz biboumi-master.zip |
Instead use \1, and build our own nodes by explicitely separating the
namespace and the node name.
Diffstat (limited to 'src/xmpp/adhoc_command.cpp')
-rw-r--r-- | src/xmpp/adhoc_command.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/adhoc_command.cpp b/src/xmpp/adhoc_command.cpp index fbf4ce2..f8c8e4f 100644 --- a/src/xmpp/adhoc_command.cpp +++ b/src/xmpp/adhoc_command.cpp @@ -26,7 +26,7 @@ void PingStep1(XmppComponent&, AdhocSession&, XmlNode& command_node) void HelloStep1(XmppComponent&, AdhocSession&, XmlNode& command_node) { - XmlSubNode x(command_node, "jabber:x:data:x"); + XmlSubNode x(command_node, "jabber:x:data", "x"); x["type"] = "form"; XmlSubNode title(x, "title"); title.set_inner("Configure your name."); @@ -65,9 +65,9 @@ void HelloStep2(XmppComponent&, AdhocSession& session, XmlNode& command_node) } } command_node.delete_all_children(); - XmlSubNode error(command_node, ADHOC_NS":error"); + XmlSubNode error(command_node, ADHOC_NS, "error"); error["type"] = "modify"; - XmlSubNode condition(error, STANZA_NS":bad-request"); + XmlSubNode condition(error, STANZA_NS, "bad-request"); session.terminate(); } |