Include the <text/> element in stanza error when there IS a text

This commit is contained in:
louiz’
2016-12-13 23:57:19 +01:00
parent 6b245ee64a
commit ca86189412
+1 -1
View File
@@ -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;