Subject moderators to MIN_ANTIFLOOD rather than channel limit
This commit is contained in:
parent
7debb7afa7
commit
7782ba4ae5
|
|
@ -257,7 +257,8 @@ ChatModule.prototype.processChatMsg = function (user, data) {
|
||||||
var msgobj = this.formatMessage(user.getName(), data);
|
var msgobj = this.formatMessage(user.getName(), data);
|
||||||
var antiflood = MIN_ANTIFLOOD;
|
var antiflood = MIN_ANTIFLOOD;
|
||||||
if (this.channel.modules.options &&
|
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");
|
antiflood = this.channel.modules.options.get("chat_antiflood_params");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue