summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-10-31 13:54:25 +0100
committerlouiz’ <louiz@louiz.org>2016-10-31 14:03:37 +0100
commitae02e58b9dc276b247be84e1d708ca50a1f5bbd0 (patch)
treeef20d9624c010829a3187db179409662c1be72a0 /src/irc
parent8c26b4d19f6d3464050a34c782694059b2a7b013 (diff)
downloadbiboumi-ae02e58b9dc276b247be84e1d708ca50a1f5bbd0.tar.gz
biboumi-ae02e58b9dc276b247be84e1d708ca50a1f5bbd0.tar.bz2
biboumi-ae02e58b9dc276b247be84e1d708ca50a1f5bbd0.tar.xz
biboumi-ae02e58b9dc276b247be84e1d708ca50a1f5bbd0.zip
Some cleanups
Diffstat (limited to 'src/irc')
-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 033671e..b0d3a47 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -942,7 +942,7 @@ void IrcClient::on_nick(const IrcMessage& message)
{
const std::string new_nick = IrcUser(message.arguments[0]).nick;
const std::string current_nick = IrcUser(message.prefix).nick;
- const auto change_nick_func = [&](const std::string& chan_name, const IrcChannel* channel)
+ const auto change_nick_func = [this, &new_nick, &current_nick](const std::string& chan_name, const IrcChannel* channel)
{
IrcUser* user;
if (channel->get_self() && channel->get_self()->nick == current_nick)