summaryrefslogtreecommitdiff
path: root/src/xmpp/biboumi_component.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-02-13 09:58:54 +0100
committerlouiz’ <louiz@louiz.org>2017-02-13 10:00:49 +0100
commit8b2f748b1d8de6513ca69e643b50477b0e5a2130 (patch)
tree94f8d641c27aa98477105382b3cd5fdfb9610696 /src/xmpp/biboumi_component.cpp
parent5ae33d6b9ed47bf43626066c5bdc4d91a7b75db1 (diff)
downloadbiboumi-8b2f748b1d8de6513ca69e643b50477b0e5a2130.tar.gz
biboumi-8b2f748b1d8de6513ca69e643b50477b0e5a2130.tar.bz2
biboumi-8b2f748b1d8de6513ca69e643b50477b0e5a2130.tar.xz
biboumi-8b2f748b1d8de6513ca69e643b50477b0e5a2130.zip
Do not send a not-connected error, on "unavailable" presences
fix #3231
Diffstat (limited to 'src/xmpp/biboumi_component.cpp')
-rw-r--r--src/xmpp/biboumi_component.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index bd6975e..52bf2b7 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -179,10 +179,11 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
}
catch (const IRCNotConnected& ex)
{
- this->send_stanza_error("presence", from_str, to_str, id,
- "cancel", "remote-server-not-found",
- "Not connected to IRC server "s + ex.hostname,
- true);
+ if (type == "unavailable")
+ this->send_stanza_error("presence", from_str, to_str, id,
+ "cancel", "remote-server-not-found",
+ "Not connected to IRC server "s + ex.hostname,
+ true);
}
stanza_error.disable();
}