Hmm, well aprt from the obvious.

bleh.
it probably
This commit is contained in:
gnuxie 2022-07-18 16:50:44 +01:00
parent 0ad35e43fe
commit 9a590244d1

View File

@ -83,7 +83,7 @@ export class WordList extends Protection {
return
}
}
if (this.badWords == null) {
if (this.badWords === null) {
// Create a mega-regex from all the tiny baby regexs
try {
this.badWords = new RegExp(
@ -93,7 +93,7 @@ export class WordList extends Protection {
} catch (ex) {
await mjolnir.logMessage(LogLevel.ERROR, "WordList", `Could not produce a regex from the word list:\n${ex}.`)
}
}-
}
// Perform the test
if (message && this.badWords!.test(message)) {