3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-27 13:12:42 +01:00

Significantly increase join flood ban timeout in order to reduce channel spam (made more feasible by !unbanme)

This commit is contained in:
Pragmatic Software 2010-06-18 00:49:50 +00:00
parent af7d55da0d
commit be6e2ae8ab
2 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ sub check_flood {
if(${ $self->message_history }{$account}{$channel}{join_watch} >= $max_messages) {
${ $self->message_history }{$account}{$channel}{offenses}++;
my $timeout = (2 ** (${ $self->message_history }{$account}{$channel}{offenses} < 6 ? ${ $self->message_history }{$account}{$channel}{offenses} : 6));
my $timeout = (2 ** (($self->message_history->{$account}{$channel}{offenses} + 6) < 10 ? ${ $self->message_history }{$account}{$channel}{offenses} + 6 : 10));
$self->{pbot}->chanops->quiet_user_timed("*!$user\@$host\$##fix_your_connection", $channel, $timeout * 60 * 60);

View File

@ -13,8 +13,8 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 168,
BUILD_DATE => "2010-06-15",
BUILD_REVISION => 169,
BUILD_DATE => "2010-06-17",
};
1;