From 7782ba4ae519784adda3967da1c38360d3ee8662 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Mon, 27 Apr 2015 12:22:52 -0500 Subject: [PATCH] Subject moderators to MIN_ANTIFLOOD rather than channel limit --- lib/channel/chat.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/channel/chat.js b/lib/channel/chat.js index 539a6b97..4b9109d5 100644 --- a/lib/channel/chat.js +++ b/lib/channel/chat.js @@ -257,7 +257,8 @@ ChatModule.prototype.processChatMsg = function (user, data) { var msgobj = this.formatMessage(user.getName(), data); var antiflood = MIN_ANTIFLOOD; if (this.channel.modules.options && - this.channel.modules.options.get("chat_antiflood")) { + this.channel.modules.options.get("chat_antiflood") && + user.account.effectiveRank < 2) { antiflood = this.channel.modules.options.get("chat_antiflood_params"); }