mirror of https://github.com/calzoneman/sync.git
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);
|
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 = XSS.sanitizeText(msg);
|
||||||
msg = this.filterMessage(msg);
|
msg = this.filterMessage(msg);
|
||||||
var msgobj = {
|
var msgobj = {
|
||||||
|
|
Loading…
Reference in New Issue