3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Plugins/RemindMe: clean up previous commit

This commit is contained in:
Pragmatic Software 2021-06-29 23:39:11 -07:00
parent b1f8fb0044
commit 53739e0184

View File

@ -194,11 +194,9 @@ sub cmd_remindme {
my $admininfo = $self->{pbot}->{users}->loggedin_admin($channel ? $channel : $context->{from}, $context->{hostmask}); 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 # option -c was provided; ensure bot is in channel
if ($channel) { if ($channel and not $self->{pbot}->{channels}->is_active($channel)) {
if (not $self->{pbot}->{channels}->is_active($channel)) { return "I'm not active in channel $channel.";
return "I'm not active in channel $channel.";
}
} }
# parse "5 minutes", "next week", "3pm", etc into seconds # parse "5 minutes", "next week", "3pm", etc into seconds