summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_component.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/xmpp_component.cpp')
-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();