Commit b39ed80d authored by louiz’'s avatar louiz’

Add two missing type="error" in some presence errors

parent 609722b4
......@@ -918,6 +918,7 @@ void XmppComponent::send_nickname_conflict_error(const std::string& muc_name,
Stanza presence("presence");
presence["from"] = muc_name + "@" + this->served_hostname + "/" + nickname;
presence["to"] = jid_to;
presence["type"] = "error";
XmlNode x("x");
x["xmlns"] = MUC_NS;
x.close();
......@@ -946,6 +947,7 @@ void XmppComponent::send_presence_error(const std::string& muc_name,
Stanza presence("presence");
presence["from"] = muc_name + "@" + this->served_hostname + "/" + nickname;
presence["to"] = jid_to;
presence["type"] = "error";
XmlNode x("x");
x["xmlns"] = MUC_NS;
x.close();
......
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