mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
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
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
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};
|
||||
|
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 413,
|
||||
BUILD_REVISION => 414,
|
||||
BUILD_DATE => "2013-07-28",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user