summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index d65da87..e134bea 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -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);
}