Do not reply with an error when receiving a presence for a user JID

fix #3224
This commit is contained in:
louiz’
2017-07-20 21:34:27 +02:00
parent 24f2511d7b
commit 407f95a108
4 changed files with 2 additions and 57 deletions
+2 -5
View File
@@ -210,11 +210,8 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
this->send_presence_to_contact(to_str, from.bare(), "");
}
}
else
{
// A user wants to join an invalid IRC channel, return a presence error to him/her
if (type.empty())
this->send_invalid_room_error(to.local, to.resource, from_str);
else if (iid.type == Iid::Type::User)
{ // Do nothing yet
}
}
catch (const IRCNotConnected& ex)