summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-07-04 20:42:40 +0200
committerlouiz’ <louiz@louiz.org>2017-07-16 00:16:43 +0200
commitf9a6f973966430b108642ac57d54db5fd0d5535e (patch)
treed34574f81b9b55b7ce49ba5d10ef543c7db9f3bc /src/irc
parent368bb82818d4b68e4984698ea4454091ecb049a2 (diff)
downloadbiboumi-f9a6f973966430b108642ac57d54db5fd0d5535e.tar.gz
biboumi-f9a6f973966430b108642ac57d54db5fd0d5535e.tar.bz2
biboumi-f9a6f973966430b108642ac57d54db5fd0d5535e.tar.xz
biboumi-f9a6f973966430b108642ac57d54db5fd0d5535e.zip
Implement the roster presences from IRC servers
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 67221c5..46dbdbe 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -297,6 +297,7 @@ void IrcClient::on_connected()
#endif
this->send_gateway_message("Connected to IRC server"s + (this->use_tls ? " (encrypted)": "") + ".");
this->send_pending_data();
+ this->bridge.on_irc_client_connected(this->get_hostname());
}
void IrcClient::on_connection_close(const std::string& error_msg)
@@ -309,6 +310,7 @@ void IrcClient::on_connection_close(const std::string& error_msg)
const IrcMessage error{"ERROR", {message}};
this->on_error(error);
log_warning(message);
+ this->bridge.on_irc_client_disconnected(this->get_hostname());
}
IrcChannel* IrcClient::get_channel(const std::string& n)