Skip to content

Commit

Permalink
Really don't mark raw messages as highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsOnlyBinary committed Aug 30, 2023
1 parent 0e712f5 commit 6bd3b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ function createNewState() {

// Check for extra custom highlight words
let extraHighlights = (state.setting('highlights') || '').toLowerCase().split(' ');
if (!isHighlight && extraHighlights.length > 0) {
if (!isHighlight && !buffer.isRaw() && extraHighlights.length > 0) {
extraHighlights.forEach((word) => {
if (!word) {
return;
Expand All @@ -624,7 +624,7 @@ function createNewState() {
});
}

if (state.setting('teamHighlights')) {
if (!buffer.isRaw() && state.setting('teamHighlights')) {
let m = bufferMessage.message;
let patterns = {
everyone: /(^|\s)@everybody($|\s|[,.;])/,
Expand Down

0 comments on commit 6bd3b0b

Please sign in to comment.