aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-23 16:51:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-23 16:51:05 +0100
commita59114820efe8abfc606da71b8e94c1759ceedab (patch)
tree997feddea031eb8b51c653c8da2346cb307c51a7 /src/lua
parent011e790385be186d1bfe9f48bda906474e089f7b (diff)
downloadrspamd-a59114820efe8abfc606da71b8e94c1759ceedab.tar.gz
rspamd-a59114820efe8abfc606da71b8e94c1759ceedab.zip
Rework pre-filters results processing.
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_task.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index d91774d1b..cb0d7325b 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -793,6 +793,7 @@ lua_task_set_pre_result (lua_State * L)
mres = rspamd_create_metric_result (task, DEFAULT_METRIC);
if (mres != NULL) {
mres->score = mres->metric->actions[action].score;
+ mres->action = action;
}
task->pre_result.action = action;
if (lua_gettop (L) >= 3) {