mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
check for null and not false
This commit is contained in:
parent
fe9edad1d3
commit
458c621f88
@ -83,7 +83,7 @@ export class WordList extends Protection {
|
||||
return
|
||||
}
|
||||
}
|
||||
if (!Boolean(this.badWords)) {
|
||||
if (this.badWords == null) {
|
||||
// Create a mega-regex from all the tiny baby regexs
|
||||
this.badWords = new RegExp(
|
||||
"(" + mjolnir.config.protections.wordlist.words.join(")|(") + ")",
|
||||
|
Loading…
Reference in New Issue
Block a user