diff options
author | louiz’ <louiz@louiz.org> | 2016-12-13 23:57:19 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-12-13 23:57:19 +0100 |
commit | ca8618941240545f76fd8ec32e7acb31226ab2d6 (patch) | |
tree | 18b8fbb13a889d46f2e05912d52db92866944966 | |
parent | 6b245ee64a828dd86da0acf6ffb56b618b170ca5 (diff) | |
download | biboumi-ca8618941240545f76fd8ec32e7acb31226ab2d6.tar.gz biboumi-ca8618941240545f76fd8ec32e7acb31226ab2d6.tar.bz2 biboumi-ca8618941240545f76fd8ec32e7acb31226ab2d6.tar.xz biboumi-ca8618941240545f76fd8ec32e7acb31226ab2d6.zip |
Include the <text/> element in stanza error when there IS a text
-rw-r--r-- | louloulibs/xmpp/xmpp_component.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/xmpp/xmpp_component.cpp b/louloulibs/xmpp/xmpp_component.cpp index 32702d1..cbd80c4 100644 --- a/louloulibs/xmpp/xmpp_component.cpp +++ b/louloulibs/xmpp/xmpp_component.cpp @@ -536,7 +536,7 @@ void XmppComponent::send_presence_error(const std::string& muc_name, XmlNode error("error"); error["by"] = muc_name + "@" + this->served_hostname; error["type"] = type; - if (text.empty()) + if (!text.empty()) { XmlNode text_node("text"); text_node["xmlns"] = STANZA_NS; |