Fix /mute

This commit is contained in:
calzoneman 2014-03-04 16:20:37 -06:00
parent 379c121350
commit 127e91b9d5
1 changed files with 7 additions and 1 deletions

View File

@ -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 = {