From: Vsevolod Stakhov Date: Fri, 15 Jan 2016 15:36:07 +0000 (+0000) Subject: Fix weight processing X-Git-Tag: 1.1.0~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=46fd25c4dda2e4cc25f662dc5cb5dad0d4380503;p=rspamd.git Fix weight processing --- 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); } }