From 7ce97cded523e979fc56983f50d2ee6a635649d8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 12 Feb 2016 16:31:07 +0000 Subject: [PATCH] Fix users ratelimits --- src/plugins/lua/ratelimit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index b54c5280b3..b00bf74af9 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -248,7 +248,7 @@ local function rate_test_set(task, func) end -- Get user (authuser) local auser = task:get_user() - if auser and settings['user'] > 0 then + if auser and settings['user'][1] > 0 then table.insert(args, {settings['user'], make_rate_key (auser, '', nil)}) end -- 2.47.3