mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
Forward to ##stop_join_flood instead, since it has a candide-specific on-join msg and topic
This commit is contained in:
parent
547087b81d
commit
f1e227b64d
@ -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.";
|
||||||
|
@ -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",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user