From: eneq123 Date: Mon, 22 Sep 2014 09:31:09 +0000 (+0400) Subject: action: soft_reject -> "soft reject" X-Git-Tag: 0.7.1~14^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=884aaf5c034da849e9d9fc17cf55d8294292fd42;p=rspamd.git action: soft_reject -> "soft reject" --- 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,