mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Do not exempt bot-admins lower than level 10 from ignore list
This commit is contained in:
parent
89c1ad7efa
commit
499d91e07d
@ -108,9 +108,12 @@ sub process_line {
|
||||
|
||||
if(defined $command || defined $has_url || defined $has_code) {
|
||||
if((defined $command && $command !~ /^login/i) || defined $has_url || defined $has_code) {
|
||||
if(defined $from && $pbot->{ignorelist}->check_ignore($nick, $user, $host, $from) && not $pbot->{admins}->loggedin($from, "$nick!$user\@$host")) {
|
||||
# ignored hostmask
|
||||
return;
|
||||
if(defined $from && $pbot->{ignorelist}->check_ignore($nick, $user, $host, $from)) {
|
||||
my $admin = $pbot->{admins}->loggedin($from, "$nick!$user\@$host");
|
||||
if (!defined $admin || $admin->{level} < 10) {
|
||||
# ignored hostmask
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user