diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-16 11:25:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-16 11:25:44 +0100 |
commit | e5407f6caba295084e61552b743e4e0f1833f802 (patch) | |
tree | 4968025446446a93ec841aca700d495eb10f96f6 /src | |
parent | 5a0eba92ea4b22c1a3b2f56267330931472ecb75 (diff) | |
download | rspamd-e5407f6caba295084e61552b743e4e0f1833f802.tar.gz rspamd-e5407f6caba295084e61552b743e4e0f1833f802.zip |
[Minor] Force_actions: Another fix
Diffstat (limited to 'src')
-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 69cc63a66..6e9ef9200 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) or ret > params.limit then + if (not params.limit and ret > 0) or ret > params.limit then if params.subject then task:set_metric_subject(params.subject) end |