aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-15 06:47:44 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-15 06:47:44 -0400
commit1302940db738a6e32316db06ad1cbace83537c32 (patch)
treee1eda6719b2b1cb7bab420913777ae29eb39102b /src/lib/common
parentb44bbd48c72765e46b904a7aa9ce473ab2e35f98 (diff)
downloadtanzanite-1302940db738a6e32316db06ad1cbace83537c32.tar.gz
tanzanite-1302940db738a6e32316db06ad1cbace83537c32.tar.bz2
tanzanite-1302940db738a6e32316db06ad1cbace83537c32.zip
I am dumb
Diffstat (limited to 'src/lib/common')
-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;
}
}