summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-19 15:30:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-19 15:30:24 +0100
commit94282bc2641d4285964dfbd780c334ba3c67d1e7 (patch)
tree4499ed71cecbbbe0a906426a90188f02737c8eef /src/lua
parent6965bc635343062e237a8921d2cb818d75792b37 (diff)
downloadrspamd-94282bc2641d4285964dfbd780c334ba3c67d1e7.tar.gz
rspamd-94282bc2641d4285964dfbd780c334ba3c67d1e7.zip
Consider settings actions.
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 3a000a3b3..c58aea556 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -1366,8 +1366,8 @@ lua_task_get_metric_action (lua_State *L)
if (task && metric_name) {
if ((metric_res =
g_hash_table_lookup (task->results, metric_name)) != NULL) {
- action = check_metric_action (metric_res->score,
- metric_res->metric->actions[METRIC_ACTION_REJECT].score,
+ action = check_metric_action (task, metric_res->score,
+ NULL,
metric_res->metric);
lua_pushstring (L, str_action_metric (action));
}