summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-12-13 23:57:19 +0100
committerlouiz’ <louiz@louiz.org>2016-12-13 23:57:19 +0100
commitca8618941240545f76fd8ec32e7acb31226ab2d6 (patch)
tree18b8fbb13a889d46f2e05912d52db92866944966 /louloulibs
parent6b245ee64a828dd86da0acf6ffb56b618b170ca5 (diff)
downloadbiboumi-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
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/xmpp/xmpp_component.cpp2
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;