Sfoglia il codice sorgente

[Minor] Fix scoring for the blacklist rules

tags/1.8.1
Vsevolod Stakhov 5 anni fa
parent
commit
04c99fbc2f
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      src/plugins/lua/whitelist.lua

+ 3
- 3
src/plugins/lua/whitelist.lua Vedi File

@@ -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

Loading…
Annulla
Salva