Skip to content

Commit

Permalink
Merge pull request #4685 from fatalbanana/force_actions_group
Browse files Browse the repository at this point in the history
[Minor] force_actions: set a group for symbols
  • Loading branch information
vstakhov committed Nov 4, 2023
2 parents f5d5be9 + c0c8276 commit 20bc342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/lua/force_actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ local function configure_module()
name = name,
callback = cb,
flags = 'empty',
group = N,
})
for _, a in ipairs(atoms) do
rspamd_config:register_dependency(name, a)
Expand Down Expand Up @@ -206,6 +207,7 @@ local function configure_module()
t.name = 'FORCE_ACTION_' .. name
t.callback = cb
t.flags = 'empty, ignore_passthrough'
t.group = N
rspamd_config:register_symbol(t)
if t.type == 'normal' then
for _, a in ipairs(atoms) do
Expand All @@ -222,4 +224,4 @@ local function configure_module()
end
end

configure_module()
configure_module()

0 comments on commit 20bc342

Please sign in to comment.