diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-08 11:17:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-08 11:17:20 +0100 |
commit | ecd357f4b09a485537cde1699d3b64a1e87a4101 (patch) | |
tree | e22b3025458e5262218a22adb8d55ba5680c1c55 /src/lua | |
parent | 8de4f25c4a3f1337ff3c0efb7ef646bfc4104982 (diff) | |
download | rspamd-ecd357f4b09a485537cde1699d3b64a1e87a4101.tar.gz rspamd-ecd357f4b09a485537cde1699d3b64a1e87a4101.zip |
[Minor] Further steps to get rid of metrics support
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index aac585536..f12b7504e 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1518,7 +1518,7 @@ lua_config_register_symbol (lua_State * L) nshots = 1; } - rspamd_config_add_metric_symbol (cfg, DEFAULT_METRIC, name, + rspamd_config_add_metric_symbol (cfg, name, score, description, group, flags, (guint)priority, nshots); } } @@ -1823,7 +1823,7 @@ lua_config_set_metric_symbol (lua_State * L) msg_err_config ("metric named %s is not defined", metric_name); } else if (name != NULL && weight != 0) { - rspamd_config_add_metric_symbol (cfg, metric_name, name, + rspamd_config_add_metric_symbol (cfg, name, weight, description, group, flags, (guint)priority, nshots); } } @@ -2190,7 +2190,7 @@ lua_config_newindex (lua_State *L) * Do not override the existing symbols (using zero priority), * since we are defining default values here */ - rspamd_config_add_metric_symbol (cfg, NULL, name, score, + rspamd_config_add_metric_symbol (cfg, name, score, description, group, flags, 0, nshots); } else { |