diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-02-17 10:11:31 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-02-17 10:11:31 +0200 |
commit | 6e854fe00b66591db773f7875748268f7b1a9e94 (patch) | |
tree | 740fb5602d027af84c41b86d7351d70b82035054 | |
parent | fa4fec0db345fe4162ad65a47c234f1171b3ab19 (diff) | |
download | rspamd-6e854fe00b66591db773f7875748268f7b1a9e94.tar.gz rspamd-6e854fe00b66591db773f7875748268f7b1a9e94.zip |
[Minor] Force actions: deal with null better
-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 6c01afc2b..e5c309c24 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) |