From 8ebacdbe12fb60bc0139b7ef1bec09aaa369fe80 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 8 Apr 2014 16:51:47 -0500 Subject: [PATCH] Add missing return statement --- lib/channel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/channel.js b/lib/channel.js index 1b63c45b..03c7ed9c 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -2893,6 +2893,7 @@ Channel.prototype.handleChat = function (user, data) { 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); + return; } if (smuted) {