summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-02-19 23:59:43 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-02-19 23:59:43 +0100
commit16be9af3fcd23fa8590692cbe84af20cfe6a60b2 (patch)
tree9beefdc14b8d437d24e2e85ef41fb7eb539b7ef5 /src/irc
parentaeae88dd32b5130c87929fb0d0bf0f97a17286c2 (diff)
downloadbiboumi-16be9af3fcd23fa8590692cbe84af20cfe6a60b2.tar.gz
biboumi-16be9af3fcd23fa8590692cbe84af20cfe6a60b2.tar.bz2
biboumi-16be9af3fcd23fa8590692cbe84af20cfe6a60b2.tar.xz
biboumi-16be9af3fcd23fa8590692cbe84af20cfe6a60b2.zip
Send unavailable presence to all muc when the IRC server closes the connection
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);
}