Переглянути джерело

[Minor] Multimap: Fix default score

Issue: #4117
tags/3.2
Vsevolod Stakhov 2 роки тому
джерело
коміт
9bf414e6a1
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 2 додано та 2 видалено
  1. 2
    2
      src/plugins/lua/multimap.lua

+ 2
- 2
src/plugins/lua/multimap.lua Переглянути файл

@@ -1272,7 +1272,7 @@ if opts and type(opts) == 'table' then
type = 'virtual',
name = s,
parent = id,
score = 0, -- Default score
score = tonumber(rule.score or "0") or 0, -- Default score
})
rule['symbols_set'][s] = 1
end, rule['symbols'])
@@ -1310,7 +1310,7 @@ if opts and type(opts) == 'table' then
rspamd_config:register_symbol({
type = 'prefilter',
name = rule['symbol'],
score = rule.score or 0,
score = tonumber(rule.score or "0") or 0,
callback = gen_multimap_callback(rule),
})
end, fun.filter(function(r) return r['prefilter'] end, rules))

Завантаження…
Відмінити
Зберегти