3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Fix "argument isn't numeric" warning

This commit is contained in:
Pragmatic Software 2014-03-10 06:39:30 +00:00
parent bd3fa4dee3
commit 8afb73acc2
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ sub get_baninfo {
my ($self, $mask, $channel, $account) = @_; my ($self, $mask, $channel, $account) = @_;
my ($bans, $ban_account); my ($bans, $ban_account);
$account = undef if $account == -1; $account = undef if $account eq '-1';
$account = lc $account if defined $account; $account = lc $account if defined $account;
$self->{pbot}->logger->log("[get-baninfo] Getting baninfo for $mask in $channel using account " . (defined $account ? $account : "[undefined]") . "\n"); $self->{pbot}->logger->log("[get-baninfo] Getting baninfo for $mask in $channel using account " . (defined $account ? $account : "[undefined]") . "\n");

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 => 518, BUILD_REVISION => 519,
BUILD_DATE => "2014-03-09", BUILD_DATE => "2014-03-09",
}; };