summaryrefslogtreecommitdiff
path: root/src/irc/irc_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/irc_client.cpp')
-rw-r--r--src/irc/irc_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 0b1b079..ae68528 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -701,7 +701,7 @@ void IrcClient::empty_motd(const IrcMessage&)
void IrcClient::on_empty_topic(const IrcMessage& message)
{
- const std::string chan_name = utils::tolower(message.arguments[message.arguments.size() - 1]);
+ const std::string chan_name = utils::tolower(message.arguments[1]);
log_debug("empty topic for " << chan_name);
IrcChannel* channel = this->get_channel(chan_name);
if (channel)