mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fix another "use twitch-channel when it's null" error
This commit is contained in:
parent
38966e2b19
commit
a539b821e2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue