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");