mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +00:00
Merge branch 'master' of github.com:Dragory/ZeppelinBot
This commit is contained in:
commit
50fb696d62
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ export class CensorPlugin extends Plugin {
|
|||
// Filter tokens
|
||||
const blockedTokens = this.configValueForMsg(msg, "blocked_tokens") || [];
|
||||
for (const token of blockedTokens) {
|
||||
if (msg.content.includes(token)) {
|
||||
if (msg.content.toLowerCase().includes(token.toLowerCase())) {
|
||||
this.censorMessage(msg, `blocked token (\`${token}\`) found`);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue