From 53739e018411dae0dc7ffa8a575039610bb0d68b Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 29 Jun 2021 23:39:11 -0700 Subject: [PATCH] Plugins/RemindMe: clean up previous commit --- Plugins/RemindMe.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Plugins/RemindMe.pm b/Plugins/RemindMe.pm index 4b332cc6..657b6e75 100644 --- a/Plugins/RemindMe.pm +++ b/Plugins/RemindMe.pm @@ -194,11 +194,9 @@ sub cmd_remindme { my $admininfo = $self->{pbot}->{users}->loggedin_admin($channel ? $channel : $context->{from}, $context->{hostmask}); - # option -c was provided; ensure user is an admin and bot is in channel - if ($channel) { - if (not $self->{pbot}->{channels}->is_active($channel)) { - return "I'm not active in channel $channel."; - } + # option -c was provided; ensure bot is in channel + if ($channel and not $self->{pbot}->{channels}->is_active($channel)) { + return "I'm not active in channel $channel."; } # parse "5 minutes", "next week", "3pm", etc into seconds