diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-15 16:24:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-15 16:24:04 +0000 |
commit | d54cddeeee88a24bcfa75a9144989812fcd11208 (patch) | |
tree | 448345b14dd786c684b7758850106f7dd0aed977 /src/plugins/lua/rbl.lua | |
parent | a430b091986b3ed700d809667d4280e890e0df04 (diff) | |
download | rspamd-d54cddeeee88a24bcfa75a9144989812fcd11208.tar.gz rspamd-d54cddeeee88a24bcfa75a9144989812fcd11208.zip |
[Project] Encourage dependencies registration by name only
Diffstat (limited to 'src/plugins/lua/rbl.lua')
-rw-r--r-- | src/plugins/lua/rbl.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index c3c4e7136..588a31567 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -527,6 +527,7 @@ local need_dkim = false local id = rspamd_config:register_symbol({ type = 'callback', callback = rbl_cb, + name = 'RBL_CALLBACK', flags = 'empty,nice' }) @@ -652,5 +653,5 @@ for _, w in pairs(white_symbols) do end end if need_dkim then - rspamd_config:register_dependency(id, symbols['dkim_allow_symbol']) + rspamd_config:register_dependency('RBL_CALLBACK', symbols['dkim_allow_symbol']) end |