diff --git a/lib/channel.js b/lib/channel.js index c980ab12..d2c3ffdf 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -2857,7 +2857,13 @@ Channel.prototype.handleChat = function (user, data) { user.socket.emit("chatCooldown", 1000 / this.opts.chat_antiflood_params.sustained); } - if (smuted) { + if (muted) { + user.socket.emit("noflood", { + action: "chat", + msg: "You have been muted on this channel." + }); + return; + } else if (smuted) { msg = XSS.sanitizeText(msg); msg = this.filterMessage(msg); var msgobj = {