3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 05:49:27 +01:00

AntiFlood: do not check botowner for ban-evasion

This commit is contained in:
Pragmatic Software 2020-02-05 01:18:47 -08:00
parent 6ff93c0190
commit 96c5f0dfb1

View File

@ -796,9 +796,11 @@ sub devalidate_accounts {
sub check_bans {
my ($self, $message_account, $mask, $channel, $dry_run) = @_;
$channel = lc $channel;
my $user = $self->{pbot}->{users}->loggedin($channel, $mask);
return 0 if $self->{pbot}->{capabilities}->userhas($user, 'botowner');
if (not $self->{pbot}->{chanops}->can_gain_ops($channel)) {
$self->{pbot}->{logger}->log("anti-flood: [check-ban] I do not have ops for $channel, ignoring possible ban evasions.\n");
return;