]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Ops, reverse scoring logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 23 Sep 2018 14:12:46 +0000 (15:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 23 Sep 2018 14:12:46 +0000 (15:12 +0100)
src/plugins/lua/phishing.lua

index deca221cd5308d12cb48572c95d5cde6a1639395..5ebabc01040a1045db8f670043c80bfff0d73a4c 100644 (file)
@@ -145,9 +145,9 @@ local function phishing_cb(task)
       local function host_host_path_cb(_, _, results, err)
         if not err and results then
           if not query then
-            task:insert_result(phish_symbol, 0.3, results)
-          else
             task:insert_result(phish_symbol, 1.0, results)
+          else
+            task:insert_result(phish_symbol, 0.3, results)
           end
         end
       end