diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/common/HighlightManager.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/common/HighlightManager.ts b/src/lib/common/HighlightManager.ts index c917110..4346007 100644 --- a/src/lib/common/HighlightManager.ts +++ b/src/lib/common/HighlightManager.ts @@ -120,6 +120,14 @@ export class HighlightManager { continue; } + if (message.mentions.has(user)) { + void this.client.console.verbose( + 'Highlight', + `Highlight ignored because <<${user}>> is already mentioned in the message.` + ); + continue; + } + ret.set(user, word); } } |