From b39ed80dbbaabed9647b727fa3348147c2fbae2b Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Mon, 21 Jul 2014 22:04:29 +0200 Subject: Add two missing type="error" in some presence errors --- src/xmpp/xmpp_component.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index 6af67a4..bc54bcd 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -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(); -- cgit v1.2.3