From 26592c082f7bb597494001efe305d2d76d2dbaf9 Mon Sep 17 00:00:00 2001 From: moe-ka Date: Thu, 28 Feb 2019 05:08:46 +0000 Subject: [PATCH] check for none overriding flags --- src/common/Channel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/Channel.cpp b/src/common/Channel.cpp index c9cdd6923..2b5950dc8 100644 --- a/src/common/Channel.cpp +++ b/src/common/Channel.cpp @@ -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); }