]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Always register openphish and phishtank virtual symbols
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 Jun 2016 16:05:39 +0000 (17:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 28 Jun 2016 16:05:39 +0000 (17:05 +0100)
src/plugins/lua/phishing.lua

index 04a0fe9b79b172c5479e5236bf270864a84ea2e9..bb7148fb645f9c25cc89c214be11380d3322e9eb 100644 (file)
@@ -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({