diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-05-27 01:01:38 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-05-30 03:58:17 +0200 |
commit | eb9a20187098185cc10ad192e91a90dbba12633a (patch) | |
tree | b8bc59e7120d0c965642de875a8498f50bfd9da4 /src/xmpp/xmpp_stanza.cpp | |
parent | 1c93afc9a7ec33d90c81062c3f1077b5cf84c212 (diff) | |
download | biboumi-eb9a20187098185cc10ad192e91a90dbba12633a.tar.gz biboumi-eb9a20187098185cc10ad192e91a90dbba12633a.tar.bz2 biboumi-eb9a20187098185cc10ad192e91a90dbba12633a.tar.xz biboumi-eb9a20187098185cc10ad192e91a90dbba12633a.zip |
Implement the support for adhoc commands
We have two basic example commands. But it’s not entirely finished because
there are some error checks that we don’t do.
ref #2521
Diffstat (limited to 'src/xmpp/xmpp_stanza.cpp')
-rw-r--r-- | src/xmpp/xmpp_stanza.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_stanza.cpp b/src/xmpp/xmpp_stanza.cpp index be9f8ae..c964c64 100644 --- a/src/xmpp/xmpp_stanza.cpp +++ b/src/xmpp/xmpp_stanza.cpp @@ -243,6 +243,13 @@ const std::string XmlNode::get_tag(const std::string& name) const } } +bool XmlNode::del_tag(const std::string& name) +{ + if (this->attributes.erase(name) != 0) + return true; + return false; +} + std::string& XmlNode::operator[](const std::string& name) { return this->attributes[name]; |