Subject moderators to MIN_ANTIFLOOD rather than channel limit

This commit is contained in:
Calvin Montgomery 2015-04-27 12:22:52 -05:00
parent 7debb7afa7
commit 7782ba4ae5
1 changed files with 2 additions and 1 deletions

View File

@ -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");
}