Fix another "use twitch-channel when it's null" error
This commit is contained in:
@@ -480,7 +480,7 @@ void TwitchMessageBuilder::addTextOrEmoji(const QString &string_)
|
|||||||
{
|
{
|
||||||
QString username = match.captured(1);
|
QString username = match.captured(1);
|
||||||
|
|
||||||
if (getSettings()->colorUsernames)
|
if (this->twitchChannel != nullptr && getSettings()->colorUsernames)
|
||||||
{
|
{
|
||||||
if (auto userColor =
|
if (auto userColor =
|
||||||
this->twitchChannel->getUserColor(username);
|
this->twitchChannel->getUserColor(username);
|
||||||
|
|||||||
Reference in New Issue
Block a user