fixes #952 (replaced unused 'Notification' MessageFlag)

This commit is contained in:
moe-ka 2019-02-27 15:11:00 +00:00 committed by moka
parent bfa002d3a1
commit 89f3a3f3ea
3 changed files with 3 additions and 2 deletions

View file

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

View file

@ -27,7 +27,7 @@ enum class MessageFlag : uint16_t {
Untimeout = (1 << 10), Untimeout = (1 << 10),
PubSub = (1 << 11), PubSub = (1 << 11),
Subscription = (1 << 12), Subscription = (1 << 12),
Notification = (1 << 13), Whisper = (1 << 13),
AutoMod = (1 << 14), AutoMod = (1 << 14),
RecentMessage = (1 << 15), RecentMessage = (1 << 15),
}; };

View file

@ -261,6 +261,7 @@ void IrcMessageHandler::handleWhisperMessage(Communi::IrcMessage *message)
auto overrideFlags = boost::optional<MessageFlags>(_message->flags); auto overrideFlags = boost::optional<MessageFlags>(_message->flags);
overrideFlags->set(MessageFlag::DoNotTriggerNotification); overrideFlags->set(MessageFlag::DoNotTriggerNotification);
overrideFlags->set(MessageFlag::Whisper);
if (getSettings()->inlineWhispers) if (getSettings()->inlineWhispers)
{ {