From: Vsevolod Stakhov Date: Tue, 28 Jun 2016 16:05:39 +0000 (+0100) Subject: [Fix] Always register openphish and phishtank virtual symbols X-Git-Tag: 1.3.0~228 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6883aef21422cc208d2b990d42a910bc76e6db24;p=rspamd.git [Fix] Always register openphish and phishtank virtual symbols --- diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua index 04a0fe9b7..bb7148fb6 100644 --- a/src/plugins/lua/phishing.lua +++ b/src/plugins/lua/phishing.lua @@ -271,21 +271,17 @@ if opts then }) end - if openphish_hash then - rspamd_config:register_symbol({ - type = 'virtual', - parent = id, - name = openphish_symbol, - }) - end + rspamd_config:register_symbol({ + type = 'virtual', + parent = id, + name = openphish_symbol, + }) - if phishtank_hash then - rspamd_config:register_symbol({ - type = 'virtual', - parent = id, - name = phishtank_symbol, - }) - end + rspamd_config:register_symbol({ + type = 'virtual', + parent = id, + name = phishtank_symbol, + }) end if opts['domains'] and type(opt['domains']) == 'string' then domains = rspamd_config:add_map({