diff options
author | louiz’ <louiz@louiz.org> | 2017-07-20 21:29:33 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-07-20 21:34:27 +0200 |
commit | 407f95a108c275db5e9b07398f553ab573cd46bc (patch) | |
tree | 08e997dd7ff7c01f5c7d1b6db1d7ba9c30928dad /src/xmpp/biboumi_component.cpp | |
parent | 24f2511d7ba105d65c9684dd5606a57c5af95445 (diff) | |
download | biboumi-407f95a108c275db5e9b07398f553ab573cd46bc.tar.gz biboumi-407f95a108c275db5e9b07398f553ab573cd46bc.tar.bz2 biboumi-407f95a108c275db5e9b07398f553ab573cd46bc.tar.xz biboumi-407f95a108c275db5e9b07398f553ab573cd46bc.zip |
Do not reply with an error when receiving a presence for a user JID
fix #3224
Diffstat (limited to 'src/xmpp/biboumi_component.cpp')
-rw-r--r-- | src/xmpp/biboumi_component.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp index d1c75d0..13fabd7 100644 --- a/src/xmpp/biboumi_component.cpp +++ b/src/xmpp/biboumi_component.cpp @@ -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) |