aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/force_actions.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-23 15:13:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-23 15:13:52 +0100
commitecc18762a6299d61907b47286413513db7ce3f9e (patch)
tree4e5d0d2abcc08f5d4e97fe821ac3b6853790861d /src/plugins/lua/force_actions.lua
parentd9599e164adcd19f44e4a9188126d671c93c43cf (diff)
downloadrspamd-ecc18762a6299d61907b47286413513db7ce3f9e.tar.gz
rspamd-ecc18762a6299d61907b47286413513db7ce3f9e.zip
[Minor] Fix force actions limit compare
Diffstat (limited to 'src/plugins/lua/force_actions.lua')
-rw-r--r--src/plugins/lua/force_actions.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua
index 6e9ef9200..99dcb15cc 100644
--- a/src/plugins/lua/force_actions.lua
+++ b/src/plugins/lua/force_actions.lua
@@ -102,7 +102,7 @@ local function gen_cb(params)
local ret = e:process(task)
lua_util.debugm(N, task, "expression %s returned %s", params.expr, ret)
- if (not params.limit and ret > 0) or ret > params.limit then
+ if (not params.limit and ret > 0) or (ret > (params.limit or 0)) then
if params.subject then
task:set_metric_subject(params.subject)
end