diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index e93a40c68..8d98a999a 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -212,7 +212,7 @@ QString CommandController::execCommand(const QString &textNoEmoji, if (getSettings()->inlineWhispers) { app->twitch.server->forEachChannel( - [&messagexD, &overrideFlags](ChannelPtr _channel) { + [&messagexD, overrideFlags](ChannelPtr _channel) { _channel->addMessage(messagexD, overrideFlags); }); } diff --git a/src/providers/twitch/IrcMessageHandler.cpp b/src/providers/twitch/IrcMessageHandler.cpp index 34e1d08f4..27df7cb8c 100644 --- a/src/providers/twitch/IrcMessageHandler.cpp +++ b/src/providers/twitch/IrcMessageHandler.cpp @@ -266,8 +266,8 @@ void IrcMessageHandler::handleWhisperMessage(Communi::IrcMessage *message) if (getSettings()->inlineWhispers) { app->twitch.server->forEachChannel( - [&_message, &overrideFlags](ChannelPtr channel) { - channel->addMessage(_message, overrideFlags); // + [&_message, overrideFlags](ChannelPtr channel) { + channel->addMessage(_message, overrideFlags); }); } }