Include the <text/> element in stanza error when there IS a text
This commit is contained in:
@@ -536,7 +536,7 @@ void XmppComponent::send_presence_error(const std::string& muc_name,
|
|||||||
XmlNode error("error");
|
XmlNode error("error");
|
||||||
error["by"] = muc_name + "@" + this->served_hostname;
|
error["by"] = muc_name + "@" + this->served_hostname;
|
||||||
error["type"] = type;
|
error["type"] = type;
|
||||||
if (text.empty())
|
if (!text.empty())
|
||||||
{
|
{
|
||||||
XmlNode text_node("text");
|
XmlNode text_node("text");
|
||||||
text_node["xmlns"] = STANZA_NS;
|
text_node["xmlns"] = STANZA_NS;
|
||||||
|
|||||||
Reference in New Issue
Block a user