mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-28 05:32:48 +01:00
Do not ban nick-flood on non-channels
This commit is contained in:
parent
5c14727fd1
commit
5ba8ab0a4b
@ -405,6 +405,7 @@ sub check_flood {
|
||||
|
||||
my @channels = $self->{pbot}->{messagehistory}->{database}->get_channels($account);
|
||||
foreach my $chan (@channels) {
|
||||
next if $chan !~ /^#/;
|
||||
$self->{pbot}->{chanops}->ban_user_timed("*!$user\@$host", $chan, $length);
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 596,
|
||||
BUILD_REVISION => 597,
|
||||
BUILD_DATE => "2014-05-20",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user