]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] force_actions: set a group for symbols
authorAndrew Lewis <nerf@judo.za.org>
Sat, 4 Nov 2023 10:51:18 +0000 (12:51 +0200)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 13 Nov 2023 12:16:12 +0000 (12:16 +0000)
src/plugins/lua/force_actions.lua

index 7f203b0668c7c170a1508148273d68f152ec8597..4a87cf56f2223ff72163c64fd094a964b5fdefa9 100644 (file)
@@ -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)
@@ -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
@@ -222,4 +224,4 @@ local function configure_module()
   end
 end
 
-configure_module()
\ No newline at end of file
+configure_module()