mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Significantly increase join flood ban timeout in order to reduce channel spam (made more feasible by !unbanme)
This commit is contained in:
parent
af7d55da0d
commit
be6e2ae8ab
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user