mirror of https://github.com/pragma-/pbot.git
Don't check for ban evasion on PARTs
This commit is contained in:
parent
d170f75924
commit
7f2cefea7a
|
@ -282,8 +282,12 @@ sub check_flood {
|
||||||
|
|
||||||
# check for ban evasion if channel begins with # (not private message) and hasn't yet been validated against ban evasion
|
# check for ban evasion if channel begins with # (not private message) and hasn't yet been validated against ban evasion
|
||||||
if($channel =~ m/^#/ and not $self->message_history->{$account}->{channels}->{$channel}{validated}) {
|
if($channel =~ m/^#/ and not $self->message_history->{$account}->{channels}->{$channel}{validated}) {
|
||||||
|
if($mode == $self->{FLOOD_JOIN} and $text =~ /^PART/) {
|
||||||
|
# don't check for evasion on PARTs
|
||||||
|
} else {
|
||||||
$self->check_bans($account, $channel);
|
$self->check_bans($account, $channel);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($max_messages > 0 and $length >= $max_messages) {
|
if($max_messages > 0 and $length >= $max_messages) {
|
||||||
# $self->{pbot}->logger->log("More than $max_messages messages, comparing time differences ($max_time)\n") if $mode == $self->{FLOOD_JOIN};
|
# $self->{pbot}->logger->log("More than $max_messages messages, comparing time differences ($max_time)\n") if $mode == $self->{FLOOD_JOIN};
|
||||||
|
|
|
@ -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 => 413,
|
BUILD_REVISION => 414,
|
||||||
BUILD_DATE => "2013-07-28",
|
BUILD_DATE => "2013-07-28",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue