check for none overriding flags

This commit is contained in:
moe-ka 2019-02-28 05:08:46 +00:00 committed by moka
parent 8516082191
commit 26592c082f

View file

@ -72,7 +72,8 @@ void Channel::addMessage(MessagePtr message,
}
// FOURTF: change this when adding more providers
if (this->isTwitchChannel() && !overridingFlags->has(MessageFlag::DoNotLog))
if (this->isTwitchChannel() &&
(!overridingFlags || !overridingFlags->has(MessageFlag::DoNotLog)))
{
app->logging->addMessage(this->name_, message);
}