diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-09-22 03:50:08 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-09-22 03:50:08 +0200 |
commit | 7247228e9785fd7c8d796d4aa0eb3b9c6fc8f221 (patch) | |
tree | 5c06ba0b0d10a452273550a980560f0ebd440062 | |
parent | ceec98907776dcd73b0c02a46ca135196e5f223e (diff) | |
download | biboumi-7247228e9785fd7c8d796d4aa0eb3b9c6fc8f221.tar.gz biboumi-7247228e9785fd7c8d796d4aa0eb3b9c6fc8f221.tar.bz2 biboumi-7247228e9785fd7c8d796d4aa0eb3b9c6fc8f221.tar.xz biboumi-7247228e9785fd7c8d796d4aa0eb3b9c6fc8f221.zip |
Connection may be closed from our side too
-rw-r--r-- | src/irc/irc_client.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index 26f9a46..b4df7dd 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -123,9 +123,11 @@ void IrcClient::on_connected() void IrcClient::on_connection_close(const std::string& error_msg) { - std::string message = "Connection closed by remote server."; + std::string message = "Connection closed"; if (!error_msg.empty()) message += ": " + error_msg; + else + message += "."; const IrcMessage error{"ERROR", {message}}; this->on_error(error); log_warning(message); |