Fix textColor leaking after links

This commit is contained in:
Rasmus Karlsson 2017-08-12 12:07:53 +02:00
parent 85b9703f9c
commit f455ef9f24

View file

@ -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(