aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-23 20:47:54 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-23 20:47:54 +0100
commit38bee248b223d279c9294cd8944e32a9a0867db0 (patch)
tree065ee4b3f41d0e9439ff26de956737f6beaffebb /lualib
parent90b07a7f8aefae26f8f3451b530448951cca4693 (diff)
downloadrspamd-38bee248b223d279c9294cd8944e32a9a0867db0.tar.gz
rspamd-38bee248b223d279c9294cd8944e32a9a0867db0.zip
[Minor] Try to deal with empty symbols_enabled/disabled
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_settings.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_settings.lua b/lualib/lua_settings.lua
index bb0ea0457..c8a0baf4d 100644
--- a/lualib/lua_settings.lua
+++ b/lualib/lua_settings.lua
@@ -57,10 +57,10 @@ local function register_settings_cb()
if s.symbols_enabled then
-- Remove all symbols from set.symbols aside of explicit_disable symbols
set.symbols = lua_util.list_to_hash(explicit_symbols)
+ seen_enabled = true
for _,sym in ipairs(s.symbols_enabled) do
enabled_symbols[sym] = true
set.symbols[sym] = true
- seen_enabled = true
end
end
if s.groups_enabled then
@@ -79,10 +79,10 @@ local function register_settings_cb()
-- Disabled map
if s.symbols_disabled then
+ seen_disabled = true
for _,sym in ipairs(s.symbols_disabled) do
disabled_symbols[sym] = true
set.symbols[sym] = false
- seen_disabled = true
end
end
if s.groups_disabled then