From 7c1e8be08db2526caaa1c1bb7905548841b696e2 Mon Sep 17 00:00:00 2001 From: djk Date: Wed, 20 Oct 1999 20:39:50 +0000 Subject: [PATCH] fix init command so that it throws PC21s down the other channels --- cmd/init.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/init.pl b/cmd/init.pl index 36309e93..0107f916 100644 --- a/cmd/init.pl +++ b/cmd/init.pl @@ -20,10 +20,10 @@ foreach $call (@calls) { if ($dxchan->is_ak1a) { # first clear out any nodes on this dxchannel - my @gonenodes = map { $_->dxchan == $dxchan ? $_ : () } DXNode::get_all(); + my @gonenodes = grep { $_->dxchan == $dxchan } DXNode::get_all(); foreach my $node (@gonenodes) { next if $node->dxchan == $DXProt::me; - next if $node->dxchan == $dxchan; + next unless $node->dxchan == $dxchan; DXProt::broadcast_ak1a(DXProt::pc21($node->call, 'Gone, re-init') , $dxchan) unless $dxchan->{isolate}; $node->del(); } -- 2.34.1