From 98774290b125c49eaa5ad447e304c2b77f473384 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Mon, 26 Aug 2013 11:50:57 -0400 Subject: [PATCH] This should only happen for appointments, so move it inside if. --- org-mode-appt-check.plx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-mode-appt-check.plx b/org-mode-appt-check.plx index 2a8b692..3aa7755 100755 --- a/org-mode-appt-check.plx +++ b/org-mode-appt-check.plx @@ -70,8 +70,8 @@ while (my $line = ) { system('/usr/bin/notify-send', '-u', 'critical', '-t', '300000', 'Appointment', "You have an appointment at $time: $val"); } + next if DateCalc("$date", "+ 1 hour") lt $now; } - next if DateCalc("$date", "+ 1 hour") lt $now; if (defined $prettyDayLine) { print $prettyDayLine; undef $prettyDayLine;