diff options
-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); } } |