3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 03:33:06 +01:00

Log when reminders fire off

This commit is contained in:
Pragmatic Software 2017-10-09 19:41:00 -07:00
parent 240b4a6df0
commit 0a5f64d818

View File

@ -388,6 +388,8 @@ sub check_reminders {
my $target = $reminder->{target} // $nick;
$self->{pbot}->{conn}->privmsg($target, $text);
$self->{pbot}->{logger}->log("Reminded $target about \"$text\"\n");
if ($reminder->{repeat} > 0) {
$reminder->{repeat}--;
$reminder->{alarm} = gettimeofday + $reminder->{duration};