From: Andrew Lewis Date: Wed, 23 Nov 2016 14:27:58 +0000 (+0200) Subject: [Minor] Add missing symbol registration in ASN module X-Git-Tag: 1.4.1~90^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1167%2Fhead;p=rspamd.git [Minor] Add missing symbol registration in ASN module --- diff --git a/src/plugins/lua/asn.lua b/src/plugins/lua/asn.lua index e3945842c..c632ae182 100644 --- a/src/plugins/lua/asn.lua +++ b/src/plugins/lua/asn.lua @@ -174,10 +174,17 @@ local configure_asn_module = function() end if configure_asn_module() then - rspamd_config:register_symbol({ + local id = rspamd_config:register_symbol({ name = 'ASN_CHECK', type = 'prefilter', callback = asn_check, priority = 10, }) + if options['symbol'] then + rspamd_config:register_symbol({ + name = options['symbol'], + parent = id, + type = 'virtual' + }) + end end