Allow highlights to be excluded from /mentions (#2036)
This commit is contained in:
@@ -261,11 +261,12 @@ void IrcMessageHandler::addMessage(Communi::IrcMessage *_message,
|
||||
builder.triggerHighlights();
|
||||
}
|
||||
|
||||
auto highlighted = msg->flags.has(MessageFlag::Highlighted);
|
||||
const auto highlighted = msg->flags.has(MessageFlag::Highlighted);
|
||||
const auto showInMentions = msg->flags.has(MessageFlag::ShowInMentions);
|
||||
|
||||
if (!isSub)
|
||||
{
|
||||
if (highlighted)
|
||||
if (highlighted && showInMentions)
|
||||
{
|
||||
server.mentionsChannel->addMessage(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user