Parent Directory | Revision Log | Revision Graph
* Mon May 9 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-3.sme - Fix karma logic by checking negative strikes [SME: 9502]
1 | diff -Nur qpsmtpd-0.96/plugins/karma qpsmtpd-0.96_bz9462/plugins/karma |
2 | --- qpsmtpd-0.96/plugins/karma 2016-05-09 23:56:51.145450697 +0200 |
3 | +++ qpsmtpd-0.96_bz9462/plugins/karma 2016-05-09 23:57:34.484446254 +0200 |
4 | @@ -449,7 +449,7 @@ |
5 | my $history = ($nice || 0) - $naughty; |
6 | my $log_mess = ''; |
7 | |
8 | - if ($karma <= $self->{_args}{strikes}) { # Enough negative strikes ? |
9 | + if ($karma <= -$self->{_args}{strikes}) { # Enough negative strikes ? |
10 | $history--; |
11 | my $negative_limit = 0 - $self->{_args}{negative}; |
12 | if ($history <= $negative_limit) { |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |