Do not send a not-connected error, on "unavailable" presences
fix #3231
This commit is contained in:
@@ -179,6 +179,7 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
|
|||||||
}
|
}
|
||||||
catch (const IRCNotConnected& ex)
|
catch (const IRCNotConnected& ex)
|
||||||
{
|
{
|
||||||
|
if (type == "unavailable")
|
||||||
this->send_stanza_error("presence", from_str, to_str, id,
|
this->send_stanza_error("presence", from_str, to_str, id,
|
||||||
"cancel", "remote-server-not-found",
|
"cancel", "remote-server-not-found",
|
||||||
"Not connected to IRC server "s + ex.hostname,
|
"Not connected to IRC server "s + ex.hostname,
|
||||||
|
|||||||
Reference in New Issue
Block a user