From 6883aef21422cc208d2b990d42a910bc76e6db24 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 28 Jun 2016 17:05:39 +0100 Subject: [PATCH] [Fix] Always register openphish and phishtank virtual symbols --- src/plugins/lua/phishing.lua | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) 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({ -- 2.39.5