From d36dcc5352ccb038c14a9d95bfd85c661e825bb1 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 20 Nov 2013 10:14:39 -0600 Subject: [PATCH] Exclude mods from chat throttle, add extra description to options --- lib/channel.js | 8 +------- www/channeloptions.html | 6 +++--- 2 files changed, 4 insertions(+), 10 deletions(-) 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 @@
- +
- +
- +