Fix /mute
This commit is contained in:
parent
379c121350
commit
127e91b9d5
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue