aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-21 09:14:36 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-21 09:14:36 +0100
commit9f7ac8960eb18e4cc152cd52f102f621010b9c36 (patch)
tree1a4444540568e11093bdb849e41e2e61e7834f07 /src/lua/lua_task.c
parentc90ebed0c331c71f57eda2d2dcf092e95cdaae45 (diff)
downloadrspamd-9f7ac8960eb18e4cc152cd52f102f621010b9c36.tar.gz
rspamd-9f7ac8960eb18e4cc152cd52f102f621010b9c36.zip
[Feature] Allow underscore separated names in settings
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index a3e3b0564..d18eaa4ea 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2822,7 +2822,8 @@ lua_task_set_settings (lua_State *L)
}
for (i = 0; i < METRIC_ACTION_MAX; i++) {
- elt = ucl_object_lookup (act, rspamd_action_to_str (i));
+ elt = ucl_object_lookup_any (act, rspamd_action_to_str (i),
+ rspamd_action_to_str_alt (i), NULL);
if (elt) {
mres->actions_limits[i] = ucl_object_todouble (elt);