]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add missing symbol registration 1158/head
authorAndrew Lewis <nerf@judo.za.org>
Mon, 21 Nov 2016 17:43:15 +0000 (19:43 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Mon, 21 Nov 2016 17:43:15 +0000 (19:43 +0200)
src/plugins/lua/replies.lua

index 6704882e0a44f14a7629ba8c7850221fa667ce1a..d1cd23c608a51a459f286ae4222ef303f2aa7573 100644 (file)
@@ -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