From: Andrew Lewis Date: Mon, 21 Nov 2016 17:43:15 +0000 (+0200) Subject: [Minor] Add missing symbol registration X-Git-Tag: 1.4.1~112^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a8a5f4127820712cc990480dcc9d6780eb15e0e8;p=rspamd.git [Minor] Add missing symbol registration --- 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