From: Vsevolod Stakhov Date: Wed, 10 Jul 2019 11:21:00 +0000 (+0100) Subject: [Fix] Do not use priority in metric registration X-Git-Tag: 2.0~607 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1f2807d12777038f7e52eb444ed4c0d780cc8910;p=rspamd.git [Fix] Do not use priority in metric registration --- 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");