diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-15 15:36:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-15 15:36:07 +0000 |
commit | 46fd25c4dda2e4cc25f662dc5cb5dad0d4380503 (patch) | |
tree | f66d169440388fe3b28eb62779dc7b875287e62b | |
parent | 3582f7d259a7a27f21c0111fc7d852e41e0b5569 (diff) | |
download | rspamd-46fd25c4dda2e4cc25f662dc5cb5dad0d4380503.tar.gz rspamd-46fd25c4dda2e4cc25f662dc5cb5dad0d4380503.zip |
Fix weight processing
-rw-r--r-- | src/lua/lua_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |