3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

bantracker: fixed derp

This commit is contained in:
Pragmatic Software 2011-12-12 04:17:03 +00:00
parent e10d81b769
commit 6dee494ffd
2 changed files with 4 additions and 7 deletions

View File

@ -62,11 +62,8 @@ sub initialize {
sub ban_whitelisted { sub ban_whitelisted {
my ($self, $channel, $mask) = lc @_; my ($self, $channel, $mask) = lc @_;
if($self->{ban_whitelist}->hash->{$channel}->{$mask}->{ban_whitelisted}) { $self->{pbot}->logger->log("whitelist check: $channel, $mask\n");
return 1; return defined $self->{ban_whitelist}->hash->{$channel}->{$mask}->{ban_whitelisted} ? 0 : 1;
} else {
return 0;
}
} }
sub whitelist { sub whitelist {
@ -478,7 +475,7 @@ sub check_nickserv_accounts {
if($self->ban_whitelisted($baninfo->{channel}, $baninfo->{banmask})) { if($self->ban_whitelisted($baninfo->{channel}, $baninfo->{banmask})) {
$self->{pbot}->logger->log("anti-flood: [check-bans] $mask evaded $baninfo->{banmask} in $baninfo->{channel}, but allowed through whitelist\n"); $self->{pbot}->logger->log("anti-flood: [check-bans] $mask evaded $baninfo->{banmask} in $baninfo->{channel}, but allowed through whitelist\n");
return; next;
} }
if(defined $baninfo) { if(defined $baninfo) {

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 330, BUILD_REVISION => 331,
BUILD_DATE => "2011-12-11", BUILD_DATE => "2011-12-11",
}; };