aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/force_actions.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-15 15:05:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-15 15:05:33 +0100
commit59c06fb22e658ac2b61001f1f7728fa7ab2416d0 (patch)
tree47d29846868793bc0c9cfcd96d7b496060cc3657 /src/plugins/lua/force_actions.lua
parent8714d5cb87695ba9f99d021cf307cca227c5959b (diff)
downloadrspamd-59c06fb22e658ac2b61001f1f7728fa7ab2416d0.tar.gz
rspamd-59c06fb22e658ac2b61001f1f7728fa7ab2416d0.zip
[Minor] Unbreak force actions
Diffstat (limited to 'src/plugins/lua/force_actions.lua')
-rw-r--r--src/plugins/lua/force_actions.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua
index eed095d4e..69cc63a66 100644
--- a/src/plugins/lua/force_actions.lua
+++ b/src/plugins/lua/force_actions.lua
@@ -101,7 +101,8 @@ local function gen_cb(params)
end
local ret = e:process(task)
- if params.limit and ret > params.limit then
+ lua_util.debugm(N, task, "expression %s returned %s", params.expr, ret)
+ if (not params.limit) or ret > params.limit then
if params.subject then
task:set_metric_subject(params.subject)
end