# If there is a problem reported, and we are in this machine's down time
       # then don't report it, instead mark it as blue.
 
-      foreach( @{$main::HOSTS{$name}->{'down'}} ) {
+      foreach( @{$main::HOSTS{$name}->{'down'}},
+               @{$main::HOSTS{$name}->{'down:' . $_[0]->name() }} ) {
         my( $day, $shour, $smin, $ehour, $emin ) = 
            ( /^(.):(\d+):(\d+)-(\d+):(\d+)$/ );
         my( $nmin, $nhour, $nday ) = (localtime(time()))[1,2,6];
 
 # (2) Added rules based paging (Stephen Johnson  Nov 14, 1998)
 # (3) Added checks against Acks and downtime (Stephen Johnson  Mar 17, 1999)
 #
-# $Id: spong-message.pl,v 1.19 2000/12/19 22:18:10 sljohnson Exp $
+# $Id: spong-message.pl,v 1.20 2000/12/20 22:00:45 sljohnson Exp $
 
 use lib "@@LIBDIR@@";
 
 # If there is a problem reported, and we are in this machine's down time
 # then don't do anything about it.
 
-foreach( @{$main::HOSTS{$host}->{'down'}} ) {
+foreach( @{$main::HOSTS{$host}->{'down'}},
+         @{$main::HOSTS{$host}->{"down:$service"}} ) {
    my( $day, $shour, $smin, $ehour, $emin ) = 
       ( /^(.):(\d+):(\d+)-(\d+):(\d+)$/ );
    my( $nday, $nhour, $nmin ) = (localtime())[6,2,1];