Exclude mods from chat throttle, add extra description to options

This commit is contained in:
calzoneman 2013-11-20 10:14:39 -06:00
parent ee9b19b0ff
commit d36dcc5352
2 changed files with 4 additions and 10 deletions

View file

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