mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-03 17:39:29 +01:00
Don't check for ban evasion on PARTs
This commit is contained in:
parent
d170f75924
commit
7f2cefea7a
@ -282,7 +282,11 @@ 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}) {
|
||||
$self->check_bans($account, $channel);
|
||||
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) {
|
||||
|
@ -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