3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 23:39:24 +01:00

Remove useless if(x < 0) check when incrementing x

This commit is contained in:
Pragmatic Software 2010-06-12 04:44:49 +00:00
parent 40ed750a1f
commit 6eeb2277f2
2 changed files with 1 additions and 2 deletions

View File

@ -145,7 +145,6 @@ sub check_flood {
foreach my $ch (keys %{ $self->message_history->{$account} }) {
next if $ch eq 'hostmask'; # TODO: move channels into {channel} subkey
${ $self->message_history }{$account}{$ch}{join_watch}++;
${ $self->message_history }{$account}{$ch}{join_watch} = 0 if ${ $self->message_history }{$account}{$ch}{join_watch} < 0;
$self->{pbot}->logger->log("$nick $ch joinwatch adjusted: ${ $self->message_history }{$account}{$ch}{join_watch}\n");
}
}

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 161,
BUILD_REVISION => 162,
BUILD_DATE => "2010-06-11",
};