3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 09:58:42 +02:00

Plugins/RestrictedMod: fix minor thing

This commit is contained in:
Pragmatic Software 2020-01-31 18:53:03 -08:00
parent 00256f2077
commit 83fc93bddd

View File

@ -97,7 +97,7 @@ sub generic_command {
my $target_user = $self->{pbot}->{users}->find_user($channel, $target_nicklist->{hostmask}); my $target_user = $self->{pbot}->{users}->find_user($channel, $target_nicklist->{hostmask});
if ((defined $target_user and $target_user->{level} > 0) or $target_user->{autoop} or $target_user->{autovoice} if ((defined $target_user and $target_user->{level} > 0 or $target_user->{autoop} or $target_user->{autovoice})
or $target_nicklist->{'+v'} or $target_nicklist->{'+o'} or $target_nicklist->{'+v'} or $target_nicklist->{'+o'}
or $self->{pbot}->{antiflood}->whitelisted($channel, $target_nicklist->{hostmask})) { or $self->{pbot}->{antiflood}->whitelisted($channel, $target_nicklist->{hostmask})) {
return "I don't think so." return "I don't think so."