summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-07-21 22:04:29 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-07-21 22:05:15 +0200
commitb39ed80dbbaabed9647b727fa3348147c2fbae2b (patch)
treea6a9b85ab0f93c12285034f108ae364dc1e1c70b /src/xmpp
parent609722b4e742de10edd0d035c6927862ad5f160f (diff)
downloadbiboumi-b39ed80dbbaabed9647b727fa3348147c2fbae2b.tar.gz
biboumi-b39ed80dbbaabed9647b727fa3348147c2fbae2b.tar.bz2
biboumi-b39ed80dbbaabed9647b727fa3348147c2fbae2b.tar.xz
biboumi-b39ed80dbbaabed9647b727fa3348147c2fbae2b.zip
Add two missing type="error" in some presence errors
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/xmpp_component.cpp2
1 files changed, 2 insertions, 0 deletions
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();