summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_task.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index cd33b43ae..55fdfc31e 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -4979,6 +4979,13 @@ lua_task_set_settings (lua_State *L)
struct rspamd_action_result *act_res = &mres->actions_limits[i];
elt = ucl_object_lookup (act, act_res->action->name);
+ if (elt == NULL &&
+ act_res->action->action_type != METRIC_ACTION_CUSTOM) {
+ /* Also try alt name ... */
+ elt = ucl_object_lookup (act,
+ rspamd_action_to_str_alt (act_res->action->action_type));
+ }
+
if (elt) {
if (ucl_object_type (elt) == UCL_FLOAT ||
ucl_object_type (elt) == UCL_INT) {