From 0eef321990663d4c10036b6b8604f67694a85228 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Sat, 23 Mar 2013 01:05:15 -0400 Subject: [PATCH] dnsbl: smite blacklisted IPs with -1 karma --- plugins/dnsbl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/dnsbl b/plugins/dnsbl index 7c869ee..4a055fc 100644 --- a/plugins/dnsbl +++ b/plugins/dnsbl @@ -191,6 +191,8 @@ sub hook_connect { next if ! $result; + $self->adjust_karma( -1 ); + if ( ! $dnsbl ) { ($dnsbl) = ($result =~ m/(?:\d+\.){4}(.*)/); }; if ( ! $dnsbl ) { $dnsbl = $result; };