]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix settings of the metric action score from lua
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Oct 2016 17:33:41 +0000 (18:33 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Oct 2016 17:33:41 +0000 (18:33 +0100)
src/lua/lua_config.c

index 863bbd3d84d4bb3f1166afeef6c23863631ad832..61f8cf3504ae0dc2b9d318725fba0e265164d646 100644 (file)
@@ -1405,7 +1405,7 @@ static gint
 lua_config_set_metric_action (lua_State * L)
 {
        struct rspamd_config *cfg = lua_check_config (L, 1);
-       const gchar *metric_name = DEFAULT_METRIC, *name = NULL, *flags_str = NULL;
+       const gchar *metric_name = DEFAULT_METRIC, *name = NULL;
        double weight;
        struct metric *metric;
        GError *err = NULL;
@@ -1418,7 +1418,7 @@ lua_config_set_metric_action (lua_State * L)
                                        "*action=S;score=N;"
                                        "metric=S;priority=N",
                                        &name, &weight,
-                                       &metric_name, &priority, &flags_str)) {
+                                       &metric_name, &priority)) {
                                msg_err_config ("bad arguments: %e", err);
                                g_error_free (err);