~singpolyma/biboumi

c530fb9156e3c8248e4a47316f5ac72e221d5811 — Florent Le Coz 10 years ago 4a9beff
Do not send an item-not-found presence from an invalid JID
1 files changed, 4 insertions(+), 1 deletions(-)

M src/xmpp/xmpp_component.cpp
M src/xmpp/xmpp_component.cpp => src/xmpp/xmpp_component.cpp +4 -1
@@ 640,7 640,10 @@ void XmppComponent::send_invalid_room_error(const std::string& muc_name,
                                            const std::string& to)
{
  Stanza presence("presence");
  presence["from"] = muc_name + "@" + this->served_hostname + "/" + nick;
  if (!muc_name.empty())
    presence["from"] = muc_name + "@" + this->served_hostname + "/" + nick;
  else
    presence["from"] = this->served_hostname;
  presence["to"] = to;
  presence["type"] = "error";
  XmlNode x("x");