Do not send an item-not-found presence from an invalid JID
This commit is contained in:
@@ -640,7 +640,10 @@ void XmppComponent::send_invalid_room_error(const std::string& muc_name,
|
||||
const std::string& to)
|
||||
{
|
||||
Stanza presence("presence");
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user