Skip to content

Commit

Permalink
[Minor] Force_actions: Fix logic of the module with the modified symc…
Browse files Browse the repository at this point in the history
…ache
  • Loading branch information
vstakhov committed May 14, 2022
1 parent 5b0be50 commit 5103fd0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugins/lua/force_actions.lua
Expand Up @@ -195,10 +195,13 @@ local function configure_module()
t.priority = 10
else
t.type = 'normal'
if not sett.least then
t.augmentations = {'passthrough', 'important'}
end
end
t.name = 'FORCE_ACTION_' .. name
t.callback = cb
t.flags = 'empty'
t.flags = 'empty, ignore_passthrough'
rspamd_config:register_symbol(t)
if t.type == 'normal' then
for _, a in ipairs(atoms) do
Expand All @@ -215,4 +218,4 @@ local function configure_module()
end
end

configure_module()
configure_module()

0 comments on commit 5103fd0

Please sign in to comment.