Przeglądaj źródła

[Minor] Settings: Minor case fix

tags/1.9.0
Vsevolod Stakhov 5 lat temu
rodzic
commit
8d757de7fd
1 zmienionych plików z 11 dodań i 4 usunięć
  1. 11
    4
      src/plugins/lua/settings.lua

+ 11
- 4
src/plugins/lua/settings.lua Wyświetl plik

@@ -127,10 +127,17 @@ local function check_query_settings(task)
-- settings_id is rspamd text, so need to convert it to string for lua
local id_str = tostring(settings_id)
local elt = settings_ids[id_str]
if elt and elt['apply'] then
apply_settings(task, elt['apply'])
rspamd_logger.infox(task, "applying settings id %s", id_str)
return true

if elt then
if elt['whitelist'] then
elt['apply'] = {whitelist = true}
end

if elt.apply then
apply_settings(task, elt['apply'])
rspamd_logger.infox(task, "applying settings id %s", id_str)
return true
end
end
end


Ładowanie…
Anuluj
Zapisz