From: Stephen L Johnson Date: Wed, 1 Mar 2000 22:03:45 +0000 (+0000) Subject: added fix for repeated notifications for contacts with 'delay' attribute X-Git-Tag: spong-2_7-alpha5~63 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1edffab8d99fe0a192e9e28a8294808757afa39d;p=spong.git added fix for repeated notifications for contacts with 'delay' attribute --- 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