From 1302940db738a6e32316db06ad1cbace83537c32 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 15 Oct 2021 06:47:44 -0400 Subject: I am dumb --- src/lib/common/autoMod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/common') diff --git a/src/lib/common/autoMod.ts b/src/lib/common/autoMod.ts index 3236253..0bdbebf 100644 --- a/src/lib/common/autoMod.ts +++ b/src/lib/common/autoMod.ts @@ -78,7 +78,7 @@ export class AutoMod { const matchedWords: BadWords = {}; for (const word in words) { const wordOptions = words[word]; - if (this.format(this.message.content, wordOptions) === this.format(word, wordOptions)) { + if (this.format(this.message.content, wordOptions).includes(this.format(word, wordOptions))) { matchedWords[word] = wordOptions; } } -- cgit