From 46fd25c4dda2e4cc25f662dc5cb5dad0d4380503 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 15 Jan 2016 15:36:07 +0000 Subject: [PATCH] Fix weight processing --- src/lua/lua_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index f867cfabe..b34cb4304 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1135,7 +1135,7 @@ lua_config_register_virtual_symbol (lua_State * L) if (name) { ret = rspamd_symbols_cache_add_symbol (cfg->cache, name, - 0, NULL, NULL, + weight > 0 ? 0 : -1, NULL, NULL, SYMBOL_TYPE_VIRTUAL, parent); } } -- 2.39.5