3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +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,12 +194,10 @@ 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)) {
# 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
my ($seconds, $error) = $self->{pbot}->{parsedate}->parsedate($alarm);