diff options
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index a878677c0..955103883 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -393,7 +393,7 @@ rspamd_rcl_metric_handler (struct rspamd_config *cfg, const ucl_object_t *obj, return FALSE; } while ((cur = ucl_iterate_object (val, &it, true)) != NULL) { - if (!check_action_str (ucl_object_key (cur), &action_value) || + if (!rspamd_action_from_str (ucl_object_key (cur), &action_value) || !ucl_object_todouble_safe (cur, &action_score)) { g_set_error (err, CFG_RCL_ERROR, @@ -423,7 +423,7 @@ rspamd_rcl_metric_handler (struct rspamd_config *cfg, const ucl_object_t *obj, act_str = ucl_object_tostring (cur); semicolon = strchr (act_str, ':'); if (semicolon != NULL) { - if (check_action_str (act_str, &action_value)) { + if (rspamd_action_from_str (act_str, &action_value)) { action_score = strtod (semicolon + 1, NULL); action = &metric->actions[action_value]; action->action = action_value; |