mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
Corrected inverted ternary herp
This commit is contained in:
parent
6dee494ffd
commit
3b0b04f6e1
@ -63,7 +63,7 @@ sub ban_whitelisted {
|
||||
my ($self, $channel, $mask) = lc @_;
|
||||
|
||||
$self->{pbot}->logger->log("whitelist check: $channel, $mask\n");
|
||||
return defined $self->{ban_whitelist}->hash->{$channel}->{$mask}->{ban_whitelisted} ? 0 : 1;
|
||||
return defined $self->{ban_whitelist}->hash->{$channel}->{$mask}->{ban_whitelisted} ? 1 : 0;
|
||||
}
|
||||
|
||||
sub whitelist {
|
||||
|
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 331,
|
||||
BUILD_REVISION => 332,
|
||||
BUILD_DATE => "2011-12-11",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user