@@ -179,7 +179,7 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
|
||||
}
|
||||
catch (const IRCNotConnected& ex)
|
||||
{
|
||||
if (type == "unavailable")
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user