Include the <text/> element in stanza error when there IS a text
This commit is contained in:
1 parent
6b245ee64a
commit
ca86189412
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user