diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-14 11:35:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-14 11:35:52 +0100 |
commit | b80e8b8477dd019ad9384541d499b57f5432393a (patch) | |
tree | 6d7e2da28b6a87b6e25acb0693659b9ace19aff7 /src/lua | |
parent | 13724fefdc9dbc31609938c06d6c99ba47d1729d (diff) | |
download | rspamd-b80e8b8477dd019ad9384541d499b57f5432393a.tar.gz rspamd-b80e8b8477dd019ad9384541d499b57f5432393a.zip |
[Project] Rework some more functions to work with shadow results
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 6f1eeaf3f..5285e1087 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2141,7 +2141,7 @@ lua_task_set_pre_result (lua_State * L) score, rspamd_mempool_strdup (task->task_pool, message), rspamd_mempool_strdup (task->task_pool, module), - flags); + flags, NULL); /* Don't classify or filter message if pre-filter sets results */ @@ -5906,7 +5906,7 @@ lua_task_get_metric_result (lua_State *L) lua_pushnumber (L, metric_res->score); lua_settable (L, -3); - action = rspamd_check_action_metric (task, NULL); + action = rspamd_check_action_metric (task, NULL, NULL); if (action) { lua_pushstring (L, "action"); @@ -5977,7 +5977,7 @@ lua_task_get_metric_action (lua_State *L) struct rspamd_action *action; if (task) { - action = rspamd_check_action_metric (task, NULL); + action = rspamd_check_action_metric (task, NULL, NULL); lua_pushstring (L, action->name); } else { |