Exclude mods from chat throttle, add extra description to options
This commit is contained in:
parent
ee9b19b0ff
commit
d36dcc5352
2 changed files with 4 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue