Send unavailable presence to all muc when the IRC server closes the connection
This commit is contained in:
1 parent
aeae88dd32
commit
16be9af3fc
3 files changed
+7
-2
No files matched your search
@@ -46,6 +46,8 @@ void IrcClient::on_connection_close()
|
||||
{
|
||||
static const std::string message = "Connection closed by remote server.";
|
||||
this->send_gateway_message(message);
|
||||
const IrcMessage error{"ERROR", {message}};
|
||||
this->on_error(error);
|
||||
log_warning(message);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user