From f455ef9f24ef57982344297406c228f38ad9660e Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 12 Aug 2017 12:07:53 +0200 Subject: [PATCH] Fix textColor leaking after links --- src/twitch/twitchmessagebuilder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/twitch/twitchmessagebuilder.cpp b/src/twitch/twitchmessagebuilder.cpp index 08bb6c49d..0edd66e84 100644 --- a/src/twitch/twitchmessagebuilder.cpp +++ b/src/twitch/twitchmessagebuilder.cpp @@ -94,13 +94,14 @@ SharedMessage TwitchMessageBuilder::parse() auto currentTwitchEmote = twitchEmotes.begin(); // words - QColor textColor = ircMessage->isAction() ? this->usernameColor : this->colorScheme.Text; QStringList splits = this->originalMessage.split(' '); long int i = 0; for (QString split : splits) { + QColor textColor = ircMessage->isAction() ? this->usernameColor : this->colorScheme.Text; + // twitch emote if (currentTwitchEmote != twitchEmotes.end() && currentTwitchEmote->first == i) { this->appendWord(