mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 23:39:24 +01:00
AntiFlood: do not check botowner for ban-evasion
This commit is contained in:
parent
6ff93c0190
commit
96c5f0dfb1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user