From: Andrew Lewis Date: Fri, 17 Feb 2017 08:11:31 +0000 (+0200) Subject: [Minor] Force actions: deal with null better X-Git-Tag: 1.5.0~94^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1430%2Fhead;p=thirdparty%2Frspamd.git [Minor] Force actions: deal with null better --- diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index 6c01afc2b5..e5c309c242 100644 --- a/src/plugins/lua/force_actions.lua +++ b/src/plugins/lua/force_actions.lua @@ -57,7 +57,7 @@ local function gen_cb(expr, act, pool, message, subject) if subject then task:set_metric_subject(subject) end - if message then + if type(message) == 'string' then task:set_pre_result(act, message) else task:set_pre_result(act)