diff --git a/lib/channel.js b/lib/channel.js index 792b0e30..fa0fec9e 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -2243,15 +2243,9 @@ Channel.prototype.tryChat = function(user, data) { msg = msg.substring(0, 240); } - if (this.opts.chat_antiflood && + if (user.rank < 2 && this.opts.chat_antiflood && user.chatLimiter.throttle(this.opts.chat_antiflood_params)) { user.socket.emit("chatCooldown", 1000/this.opts.chat_antiflood_params.sustained); - /* - user.socket.emit("noflood", { - action: "chat", - msg: "sending messages too quickly!" - }); - */ return; } diff --git a/www/channeloptions.html b/www/channeloptions.html index 41d984da..a01d456f 100644 --- a/www/channeloptions.html +++ b/www/channeloptions.html @@ -31,21 +31,21 @@