diff --git a/src/providers/twitch/IrcMessageHandler.cpp b/src/providers/twitch/IrcMessageHandler.cpp index 1762f63f0..89483b23b 100644 --- a/src/providers/twitch/IrcMessageHandler.cpp +++ b/src/providers/twitch/IrcMessageHandler.cpp @@ -539,10 +539,10 @@ std::vector parseUserNoticeMessage(Channel *channel, { auto login = loginTag.value().toString(); MessageColor color = MessageColor::System; - if (auto colorTag = tags.find("color"); colorTag != tags.end()) + if (auto colorTag = tags.value("color").value(); + colorTag.isValid()) { - // Blindly trust that it's a valid hex code - color = MessageColor(QColor{colorTag.value().toString()}); + color = MessageColor(colorTag); } auto displayName = displayNameTag.value().toString();