diff options
author | louiz’ <louiz@louiz.org> | 2016-08-22 00:44:17 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-08-22 00:44:17 +0200 |
commit | d1626c929f1d313c2f0f85b7d8b756a8d488d1dc (patch) | |
tree | c3f4e4c18fbd69cf119d09e51f9c43b9da932b87 /src/irc | |
parent | 593b3268273cac2fa58257ee8e51ce1a6de30872 (diff) | |
download | biboumi-d1626c929f1d313c2f0f85b7d8b756a8d488d1dc.tar.gz biboumi-d1626c929f1d313c2f0f85b7d8b756a8d488d1dc.tar.bz2 biboumi-d1626c929f1d313c2f0f85b7d8b756a8d488d1dc.tar.xz biboumi-d1626c929f1d313c2f0f85b7d8b756a8d488d1dc.zip |
When joining a channel, send the most recent history found in the database
Diffstat (limited to 'src/irc')
-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 4cd437d..59da97e 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -755,7 +755,9 @@ void IrcClient::on_channel_completely_joined(const IrcMessage& message) const std::string chan_name = utils::tolower(message.arguments[1]); IrcChannel* channel = this->get_channel(chan_name); channel->joined = true; - this->bridge.send_user_join(this->hostname, chan_name, channel->get_self(), channel->get_self()->get_most_significant_mode(this->sorted_user_modes), true); + this->bridge.send_user_join(this->hostname, chan_name, channel->get_self(), + channel->get_self()->get_most_significant_mode(this->sorted_user_modes), true); + this->bridge.send_room_history(this->hostname, chan_name); this->bridge.send_topic(this->hostname, chan_name, channel->topic, channel->topic_author); } |