From 1edffab8d99fe0a192e9e28a8294808757afa39d Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Wed, 1 Mar 2000 22:03:45 +0000 Subject: [PATCH] added fix for repeated notifications for contacts with 'delay' attribute --- src/spong-message.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spong-message.pl b/src/spong-message.pl index dd8a6e0..6058261 100755 --- a/src/spong-message.pl +++ b/src/spong-message.pl @@ -507,8 +507,9 @@ RULE: # Remove the old npfile and fall thru to send messages unlink $np_file; # If last page time + repeat time still in the future - # or if no delay specified - } elsif ( $pagetime + $repeat > time() || $delay == 0 ) + # or if no repeat specified, or status is not red + } elsif ( $pagetime + $repeat > time() || $repeat == 0 + || $color ne 'red' ) { next; } # next contact else { # Update np-file and fall thru to send message -- 2.30.2