aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/replies.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-21 19:43:15 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-21 19:43:15 +0200
commita8a5f4127820712cc990480dcc9d6780eb15e0e8 (patch)
treefa6026273789b6f3bf38977cf2e80fa00fc8fe85 /src/plugins/lua/replies.lua
parent91a96742d37ca1b096b825f7a941b42aa4987e51 (diff)
downloadrspamd-a8a5f4127820712cc990480dcc9d6780eb15e0e8.tar.gz
rspamd-a8a5f4127820712cc990480dcc9d6780eb15e0e8.zip
[Minor] Add missing symbol registration
Diffstat (limited to 'src/plugins/lua/replies.lua')
-rw-r--r--src/plugins/lua/replies.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index 6704882e0..d1cd23c60 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -127,12 +127,17 @@ if opts then
callback = replies_set,
priority = 5
})
- rspamd_config:register_symbol({
+ local id = rspamd_config:register_symbol({
name = 'REPLIES_CHECK',
type = 'prefilter',
callback = replies_check,
priority = 10
})
+ rspamd_config:register_symbol({
+ name = settings['symbol'],
+ parent = id,
+ type = 'virtual'
+ })
end
for k,v in pairs(opts) do