~singpolyma/biboumi

7247228e9785fd7c8d796d4aa0eb3b9c6fc8f221 — Florent Le Coz 9 years ago ceec989
Connection may be closed from our side too
1 files changed, 3 insertions(+), 1 deletions(-)

M src/irc/irc_client.cpp
M src/irc/irc_client.cpp => src/irc/irc_client.cpp +3 -1
@@ 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);