aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c6
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 {