From 795dde17df20fbd0dfdb3100a3de8562dfb64fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A4r=20Halberkamp?= Date: Tue, 2 Jul 2019 22:37:52 +0200 Subject: [PATCH] Don't allow people with banwords in their status to talk --- server/chat.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/chat.js b/server/chat.js index 4024ad6d0c..80136704e4 100644 --- a/server/chat.js +++ b/server/chat.js @@ -1219,6 +1219,10 @@ class CommandContext extends MessageContext { this.errorReply(`Your username contains a phrase banned by this room.`); return false; } + if (user.status && (!this.checkBanwords(room, user.status) && !user.can('bypassall'))) { + this.errorReply(`Your status message contains a phrase banned by this room.`); + return false; + } if (!this.checkBanwords(room, message) && !user.can('mute', null, room)) { this.errorReply("Your message contained banned words in this room."); return false;