summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-18 18:33:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-18 18:33:41 +0100
commitb914a3aa298b73f49ca508284dbfb5d5ccf657d4 (patch)
tree434b41c298af648de4b5eb9f939e9cf77e6b9f91 /src
parentfa9c32770a7229abad55ad63cfc01cc7b3f76e9b (diff)
downloadrspamd-b914a3aa298b73f49ca508284dbfb5d5ccf657d4.tar.gz
rspamd-b914a3aa298b73f49ca508284dbfb5d5ccf657d4.zip
[Minor] Fix settings of the metric action score from lua
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 863bbd3d8..61f8cf350 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -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);