mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
Remove useless if(x < 0) check when incrementing x
This commit is contained in:
parent
40ed750a1f
commit
6eeb2277f2
@ -145,7 +145,6 @@ sub check_flood {
|
|||||||
foreach my $ch (keys %{ $self->message_history->{$account} }) {
|
foreach my $ch (keys %{ $self->message_history->{$account} }) {
|
||||||
next if $ch eq 'hostmask'; # TODO: move channels into {channel} subkey
|
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}++;
|
||||||
${ $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");
|
$self->{pbot}->logger->log("$nick $ch joinwatch adjusted: ${ $self->message_history }{$account}{$ch}{join_watch}\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 => 161,
|
BUILD_REVISION => 162,
|
||||||
BUILD_DATE => "2010-06-11",
|
BUILD_DATE => "2010-06-11",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user