check for none overriding flags
This commit is contained in:
@@ -72,7 +72,8 @@ void Channel::addMessage(MessagePtr message,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FOURTF: change this when adding more providers
|
// 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);
|
app->logging->addMessage(this->name_, message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user