commit 3b5bbe4: [Minor] DCC: Fix plugin callback type

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jan 4 19:14:11 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-01-04 19:08:11 +0000
URL: https://github.com/rspamd/rspamd/commit/3b5bbe44905fa701c0df93f3d21c9ec57c7d1b78 (HEAD -> master)

[Minor] DCC: Fix plugin callback type
Issue: #3594

---
 src/plugins/lua/dcc.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/lua/dcc.lua b/src/plugins/lua/dcc.lua
index 4fe7bfe78..4cbe301e0 100644
--- a/src/plugins/lua/dcc.lua
+++ b/src/plugins/lua/dcc.lua
@@ -71,7 +71,8 @@ rule = dcc.configure(opts)
 if rule then
   local id = rspamd_config:register_symbol({
     name = 'DCC_CHECK',
-    callback = check_dcc
+    callback = check_dcc,
+    type = 'callback',
   })
   rspamd_config:register_symbol{
     type = 'virtual',


More information about the Commits mailing list