Handle topic changes

This commit is contained in:
Florent Le Coz
2014-01-04 01:59:35 +01:00
parent b8ce9ed43d
commit 9df757fc67
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -274,6 +274,8 @@ void IrcClient::on_topic_received(const IrcMessage& message)
const std::string chan_name = utils::tolower(message.arguments[1]);
IrcChannel* channel = this->get_channel(chan_name);
channel->topic = message.arguments[2];
if (channel->joined)
this->bridge->send_topic(this->hostname, chan_name, channel->topic);
}
void IrcClient::on_channel_completely_joined(const IrcMessage& message)