3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-02 01:18:40 +02:00

Antiflood: deal with ping timeout quits aggressively

This commit is contained in:
Pragmatic Software 2010-06-12 01:49:49 +00:00
parent 4242eecf43
commit a70d8a1fd5
2 changed files with 5 additions and 1 deletions

View File

@ -117,6 +117,10 @@ sub check_flood {
${ $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");
}
} elsif($text =~ /^QUIT Ping timeout/) {
# deal with ping timeouts agressively
${ $self->message_history }{$account}{$ch}{join_watch}++;
$self->{pbot}->logger->log("$nick $ch joinwatch adjusted: ${ $self->message_history }{$account}{$ch}{join_watch}\n");
}
}
} elsif($mode == $self->{FLOOD_CHAT}) {

View File

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