From 83fc93bdddee3c5293db957b8a4113cec1dbc7bc Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 31 Jan 2020 18:53:03 -0800 Subject: [PATCH] Plugins/RestrictedMod: fix minor thing --- Plugins/RestrictedMod.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/RestrictedMod.pm b/Plugins/RestrictedMod.pm index fa66751c..4fdb1643 100644 --- a/Plugins/RestrictedMod.pm +++ b/Plugins/RestrictedMod.pm @@ -97,7 +97,7 @@ sub generic_command { 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 $self->{pbot}->{antiflood}->whitelisted($channel, $target_nicklist->{hostmask})) { return "I don't think so."