From 1f2807d12777038f7e52eb444ed4c0d780cc8910 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 10 Jul 2019 12:21:00 +0100 Subject: [PATCH] [Fix] Do not use priority in metric registration --- src/lua/lua_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index db0105cbc..ec1023f4f 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1961,12 +1961,12 @@ lua_config_register_symbol (lua_State * L) if (!isnan (score)) { rspamd_config_add_symbol (cfg, name, score, description, group, flags, - (guint) priority, nshots); + 0, nshots); } else { rspamd_config_add_symbol (cfg, name, 0.0, description, group, flags, - (guint) priority, nshots); + 0, nshots); } lua_pushstring (L, "groups"); -- 2.39.5