]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Unbreak force actions
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Oct 2020 14:05:33 +0000 (15:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Oct 2020 14:05:33 +0000 (15:05 +0100)
src/plugins/lua/force_actions.lua

index eed095d4e7e6e12095c2a6f0b45e21fe20108691..69cc63a661e22ccd947808d9ecc6f55d94919c33 100644 (file)
@@ -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