aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-17 12:09:37 +0000
committerGitHub <noreply@github.com>2017-02-17 12:09:37 +0000
commit690b006dab61b2430b78c3fdb4ad56c345ba8d01 (patch)
tree740fb5602d027af84c41b86d7351d70b82035054 /src
parentfa4fec0db345fe4162ad65a47c234f1171b3ab19 (diff)
parent6e854fe00b66591db773f7875748268f7b1a9e94 (diff)
downloadrspamd-690b006dab61b2430b78c3fdb4ad56c345ba8d01.tar.gz
rspamd-690b006dab61b2430b78c3fdb4ad56c345ba8d01.zip
Merge pull request #1430 from fatalbanana/FA
[Minor] Force actions: deal with null better
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/force_actions.lua2
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)