From 884aaf5c034da849e9d9fc17cf55d8294292fd42 Mon Sep 17 00:00:00 2001 From: eneq123 Date: Mon, 22 Sep 2014 13:31:09 +0400 Subject: [PATCH] action: soft_reject -> "soft reject" --- src/plugins/lua/ratelimit.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 82548e332..2c327a7c5 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -70,8 +70,8 @@ local function check_specific_limit (task, limit, key) rspamd_redis.make_request(task, upstream:get_ip_string(), upstream:get_port(), rate_set_key_cb, 'SET %b %b', key, lstr) if bucket > limit[1] then - rspamd_logger.info(string.format('[%s]:soft_reject - Ratelimit exceeded', key)) - task:set_pre_result(rspamd_actions['soft_reject'], 'Ratelimit exceeded') + rspamd_logger.info(string.format('[%s]:soft reject - Ratelimit exceeded', key)) + task:set_pre_result(rspamd_actions['soft reject'], 'Ratelimit exceeded') end else rspamd_redis.make_request(task, upstream:get_ip_string(), upstream:get_port(), rate_set_key_cb, -- 2.39.5