From 482a0637011fe929303ca3b5b0bd869a7147be8a Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 30 Aug 2019 00:23:00 +0200 Subject: [PATCH] Fix it for real? --- event/listeners/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/listeners/message.js b/event/listeners/message.js index 8c8122b3..c1edbf85 100644 --- a/event/listeners/message.js +++ b/event/listeners/message.js @@ -21,7 +21,7 @@ class messageListener extends Listener { // Banned words const bannedWords = await BannedWords.findAll({where: {word: Sequelize.where(Sequelize.fn('LOCATE', Sequelize.col('word'), message.content.replace(/\u200B/g, '').replace(/[\u0250-\ue007]/g, '')), Sequelize.Op.ne, 0), serverID: message.guild.id}}); - if (bannedWords[0].get('word')) { + if (bannedWords[0]) { // Remove accent let censoredMessage = message.content.toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, ''); // Remove zero width space character