3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

Forward to ##stop_join_flood instead, since it has a candide-specific on-join msg and topic

This commit is contained in:
Pragmatic Software 2010-06-19 21:38:50 +00:00
parent 547087b81d
commit f1e227b64d
2 changed files with 3 additions and 3 deletions

View File

@ -202,7 +202,7 @@ sub check_flood {
my $banmask = address_to_mask($host); my $banmask = address_to_mask($host);
$self->{pbot}->chanops->ban_user_timed("*!$user\@$banmask\$##fix_your_connection", $channel, $timeout * 60 * 60); $self->{pbot}->chanops->ban_user_timed("*!$user\@$banmask\$##stop_join_flood", $channel, $timeout * 60 * 60);
$self->{pbot}->logger->log("$nick!$user\@$banmask banned for $timeout hours due to join flooding (offense #${ $self->message_history }{$account}{$channel}{offenses}).\n"); $self->{pbot}->logger->log("$nick!$user\@$banmask banned for $timeout hours due to join flooding (offense #${ $self->message_history }{$account}{$channel}{offenses}).\n");
@ -283,7 +283,7 @@ sub unbanme {
my $banmask = address_to_mask($host); my $banmask = address_to_mask($host);
my $mask = "*!$user\@$banmask\$##fix_your_connection"; my $mask = "*!$user\@$banmask\$##stop_join_flood";
if(not exists $self->{pbot}->{chanops}->{unban_timeout}->hash->{$mask}) { if(not exists $self->{pbot}->{chanops}->{unban_timeout}->hash->{$mask}) {
return "/msg $nick There is no temporary ban set for $mask in channel $channel."; 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 # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 181, BUILD_REVISION => 182,
BUILD_DATE => "2010-06-19", BUILD_DATE => "2010-06-19",
}; };