From 127e91b9d55190c13182ec2905eff7fb4f5b9bef Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 4 Mar 2014 16:20:37 -0600 Subject: [PATCH] Fix /mute --- lib/channel.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 = {