From 04c99fbc2fe08880e719830579e466e88675e647 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 29 Sep 2018 19:14:26 +0100 Subject: [PATCH] [Minor] Fix scoring for the blacklist rules --- src/plugins/lua/whitelist.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua index c2341110c..f810433c4 100644 --- a/src/plugins/lua/whitelist.lua +++ b/src/plugins/lua/whitelist.lua @@ -45,8 +45,6 @@ local function whitelist_cb(symbol, rule, task) if rule.blacklist then how = 'bl' end local function parse_val(val) - local how = 'wl' - if rule.blacklist then how = 'bl' end if val then if val == '' then return how,1.0 @@ -193,7 +191,9 @@ local function whitelist_cb(symbol, rule, task) sym = rule.inverse_symbol else -- Inverse multiplier - mult = -mult + if not rule.blacklist then + mult = -mult + end end if rule.strict or how == 'bl' or how == 'both' then -- 2.39.5