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:
parent
bd3fa4dee3
commit
8afb73acc2
@ -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");
|
||||||
|
@ -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",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user