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

Ban-forward join floods to ##fix_your_connection

This commit is contained in:
Pragmatic Software 2010-06-16 02:21:44 +00:00
parent 16b9bba71c
commit af7d55da0d
2 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,7 @@ sub check_flood {
my $timeout = (2 ** (${ $self->message_history }{$account}{$channel}{offenses} < 6 ? ${ $self->message_history }{$account}{$channel}{offenses} : 6));
$self->{pbot}->chanops->quiet_user_timed("*!$user\@$host", $channel, $timeout * 60 * 60);
$self->{pbot}->chanops->quiet_user_timed("*!$user\@$host\$##fix_your_connection", $channel, $timeout * 60 * 60);
$self->{pbot}->logger->log("$nick!$user\@$host banned for $timeout hours due to join flooding (offense #${ $self->message_history }{$account}{$channel}{offenses}).\n");
@ -252,7 +252,7 @@ sub unbanme {
return "/msg $nick Usage: unbanme <channel> <captcha>";
}
my $mask = "*!$user\@$host";
my $mask = "*!$user\@$host\$##fix_your_connection";
if(not exists $self->{pbot}->{chanops}->{quieted_masks}->{$mask}) {
return "/msg $nick There is no temporary ban set for $mask in channel $channel.";

View File

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