diff options
author | Peter Palfrader <peter@palfrader.org> | 2003-02-17 07:22:49 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2003-02-17 07:22:49 +0000 |
commit | 2123fb6af0fa319ff43286580d035e8f986e4397 (patch) | |
tree | 4fa5c9b99c1d9c9ccb730fd9e7d8c69685a46add /Echolot/Chain.pm | |
parent | 4e4b74364edea060a70bda3bacc848eb2a26dad5 (diff) |
Some changes wrt what we consider for intensive care and changes to timers
Diffstat (limited to 'Echolot/Chain.pm')
-rw-r--r-- | Echolot/Chain.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Echolot/Chain.pm b/Echolot/Chain.pm index 2f2ca52..02604ad 100644 --- a/Echolot/Chain.pm +++ b/Echolot/Chain.pm @@ -1,7 +1,7 @@ package Echolot::Chain; # (c) 2002 Peter Palfrader <peter@palfrader.org> -# $Id: Chain.pm,v 1.6 2003/02/16 10:07:27 weasel Exp $ +# $Id: Chain.pm,v 1.7 2003/02/17 07:22:49 weasel Exp $ # =pod @@ -195,7 +195,11 @@ sub set_intensive_care($@) { my ($chaintype, $intensive_care) = @_; %{$INTENSIVE_CARE{$chaintype}} = map { ($_->{'addr1'}.' '.$_->{'addr2'}) => $_->{'reason'} } @$intensive_care; - Echolot::Log::debug("intensive care $chaintype:\n" . join("\n", map { "\t\t$_: $INTENSIVE_CARE{$chaintype}->{$_}" } keys %{$INTENSIVE_CARE{$chaintype}} )); + if (scalar @$intensive_care) { + Echolot::Log::debug("intensive care $chaintype:\n" . join("\n", map { "\t\t$_: $INTENSIVE_CARE{$chaintype}->{$_}" } keys %{$INTENSIVE_CARE{$chaintype}} )); + } else { + Echolot::Log::debug("intensive care $chaintype: (none)"); + }; }; sub receive($$$) { |