diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-23 15:13:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-23 15:13:52 +0100 |
commit | ecc18762a6299d61907b47286413513db7ce3f9e (patch) | |
tree | 4e5d0d2abcc08f5d4e97fe821ac3b6853790861d /src/plugins/lua/force_actions.lua | |
parent | d9599e164adcd19f44e4a9188126d671c93c43cf (diff) | |
download | rspamd-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.lua | 2 |
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 |