diff --git a/server/src/client.ts b/server/src/client.ts index bc10017..930518e 100644 --- a/server/src/client.ts +++ b/server/src/client.ts @@ -156,7 +156,7 @@ export class Client extends EventEmitter { return; } if (talkMsg.data.msg.length > this.room.config.charlimit) return; - if (this.room.config.bannedWords.some((w) => talkMsg.data.msg.indexOf(w) !== -1)) { + if (this.room.config.bannedWords.some((w) => talkMsg.data.msg.toLowerCase().indexOf(w.toLowerCase()) !== -1)) { return; } this.emit('talk', talkMsg.data.msg);