Commit ca861894 authored by louiz’'s avatar louiz’

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

parent 6b245ee6
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment