3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-27 06:19:25 +01:00

Do not ban nick-flood on non-channels

This commit is contained in:
Pragmatic Software 2014-05-20 22:24:58 +00:00
parent 5c14727fd1
commit 5ba8ab0a4b
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}

View File

@ -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",
};