From: Vsevolod Stakhov Date: Sat, 14 Jul 2018 09:37:28 +0000 (+0100) Subject: [Minor] Fix custom keyword parsing X-Git-Tag: 1.7.9~122 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=36ad4a3924ef58570eda1a19e03ec562298ed58a;p=rspamd.git [Minor] Fix custom keyword parsing --- diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index a84103ff9..7ab688ebf 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -443,9 +443,10 @@ local function ratelimit_cb(task) end for k, hdl in pairs(settings.custom_keywords or E) do - local ret, redis_key, bucket = pcall(hdl(task)) + local ret, redis_key, bd = pcall(hdl, task) if ret then + local bucket = parse_limit(k, bd) prefixes[redis_key] = make_prefix(redis_key, k, bucket) nprefixes = nprefixes + 1 else