commit 1f2807d: [Fix] Do not use priority in metric registration

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jul 10 11:28:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-07-10 12:21:00 +0100
URL: https://github.com/rspamd/rspamd/commit/1f2807d12777038f7e52eb444ed4c0d780cc8910 (HEAD -> master)

[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");


More information about the Commits mailing list