Do not send a not-connected error, on "unavailable" presences
fix #3231
This commit is contained in:
1 parent
5ae33d6b9e
commit
8b2f748b1d
1 file changed
+5
-4
@@ -179,10 +179,11 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
|
|||||||
}
|
}
|
||||||
catch (const IRCNotConnected& ex)
|
catch (const IRCNotConnected& ex)
|
||||||
{
|
{
|
||||||
this->send_stanza_error("presence", from_str, to_str, id,
|
if (type == "unavailable")
|
||||||
"cancel", "remote-server-not-found",
|
this->send_stanza_error("presence", from_str, to_str, id,
|
||||||
"Not connected to IRC server "s + ex.hostname,
|
"cancel", "remote-server-not-found",
|
||||||
true);
|
"Not connected to IRC server "s + ex.hostname,
|
||||||
|
true);
|
||||||
}
|
}
|
||||||
stanza_error.disable();
|
stanza_error.disable();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user