aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/common/autoMod.ts2
1 files changed, 1 insertions, 1 deletions
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;
}
}