From afeb7e719bed2fa27761c5b584d3fee2a2a97e2f Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 1 Sep 2018 12:32:39 +0000 Subject: [PATCH] Fix /r not working --- src/providers/twitch/IrcMessageHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/twitch/IrcMessageHandler.cpp b/src/providers/twitch/IrcMessageHandler.cpp index 467d5a59c..3ee2a57b6 100644 --- a/src/providers/twitch/IrcMessageHandler.cpp +++ b/src/providers/twitch/IrcMessageHandler.cpp @@ -221,10 +221,10 @@ void IrcMessageHandler::handleWhisperMessage(Communi::IrcMessage *message) false); if (!builder.isIgnored()) { - app->twitch.server->lastUserThatWhisperedMe.set(builder.userName); - MessagePtr _message = builder.build(); + app->twitch.server->lastUserThatWhisperedMe.set(builder.userName); + if (_message->flags.has(MessageFlag::Highlighted)) { app->twitch.server->mentionsChannel->addMessage(_message); }