Add missing return statement

This commit is contained in:
calzoneman 2014-04-08 16:51:47 -05:00
parent d6650f19ae
commit 8ebacdbe12
1 changed files with 1 additions and 0 deletions

View File

@ -2893,6 +2893,7 @@ Channel.prototype.handleChat = function (user, data) {
if (user.rank < 2 && this.opts.chat_antiflood && if (user.rank < 2 && this.opts.chat_antiflood &&
user.chatLimiter.throttle(this.opts.chat_antiflood_params)) { user.chatLimiter.throttle(this.opts.chat_antiflood_params)) {
user.socket.emit("chatCooldown", 1000 / this.opts.chat_antiflood_params.sustained); user.socket.emit("chatCooldown", 1000 / this.opts.chat_antiflood_params.sustained);
return;
} }
if (smuted) { if (smuted) {