aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/phishing.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-23 15:12:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-23 15:12:46 +0100
commit3f92e366ca9a4676493f43d22e13de68fa80ed48 (patch)
tree02a8925544e76517890474e9b09a6488cf21339b /src/plugins/lua/phishing.lua
parenta3c702c144cc967f627f28d1f6e75c415008975c (diff)
downloadrspamd-3f92e366ca9a4676493f43d22e13de68fa80ed48.tar.gz
rspamd-3f92e366ca9a4676493f43d22e13de68fa80ed48.zip
[Minor] Ops, reverse scoring logic
Diffstat (limited to 'src/plugins/lua/phishing.lua')
-rw-r--r--src/plugins/lua/phishing.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua
index deca221cd..5ebabc010 100644
--- a/src/plugins/lua/phishing.lua
+++ b/src/plugins/lua/phishing.lua
@@ -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