Skip to content

Commit

Permalink
[Minor] One more fix for empty symbols or groups in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed May 29, 2020
1 parent dc2447b commit 833a1a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lualib/lua_settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ local function register_settings_cb()
end
end
if s.groups_enabled then
seen_enabled = true
for _,gr in ipairs(s.groups_enabled) do
local syms = rspamd_config:get_group_symbols(gr)

if syms then
for _,sym in ipairs(syms) do
enabled_symbols[sym] = true
set.symbols[sym] = true
seen_enabled = true
end
end
end
Expand All @@ -86,13 +86,13 @@ local function register_settings_cb()
end
end
if s.groups_disabled then
seen_disabled = true
for _,gr in ipairs(s.groups_disabled) do
local syms = rspamd_config:get_group_symbols(gr)

if syms then
for _,sym in ipairs(syms) do
disabled_symbols[sym] = true
seen_disabled = true
set.symbols[sym] = false
end
end
Expand Down

0 comments on commit 833a1a4

Please sign in to comment.