3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +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 {
my ($self, $channel, $mask) = lc @_;
if($self->{ban_whitelist}->hash->{$channel}->{$mask}->{ban_whitelisted}) {
return 1;
} else {
return 0;
}
$self->{pbot}->logger->log("whitelist check: $channel, $mask\n");
return defined $self->{ban_whitelist}->hash->{$channel}->{$mask}->{ban_whitelisted} ? 0 : 1;
}
sub whitelist {
@ -478,7 +475,7 @@ sub check_nickserv_accounts {
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");
return;
next;
}
if(defined $baninfo) {

View File

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