Fix another "use twitch-channel when it's null" error

This commit is contained in:
Rasmus Karlsson 2020-12-20 17:28:04 +01:00
parent 38966e2b19
commit a539b821e2

View file

@ -480,7 +480,7 @@ void TwitchMessageBuilder::addTextOrEmoji(const QString &string_)
{
QString username = match.captured(1);
if (getSettings()->colorUsernames)
if (this->twitchChannel != nullptr && getSettings()->colorUsernames)
{
if (auto userColor =
this->twitchChannel->getUserColor(username);