Skip to content

Commit

Permalink
Fix another "use twitch-channel when it's null" error
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Dec 20, 2020
1 parent 38966e2 commit a539b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/twitch/TwitchMessageBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a539b82

Please sign in to comment.