~singpolyma/biboumi

b39ed80dbbaabed9647b727fa3348147c2fbae2b — Florent Le Coz 8 years ago 609722b
Add two missing type="error" in some presence errors
1 files changed, 2 insertions(+), 0 deletions(-)

M src/xmpp/xmpp_component.cpp
M src/xmpp/xmpp_component.cpp => src/xmpp/xmpp_component.cpp +2 -0
@@ 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();