projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix init command so that it throws PC21s down the other channels
[spider.git]
/
cmd
/
init.pl
diff --git
a/cmd/init.pl
b/cmd/init.pl
index 36309e93ab6408d878c99c7bc58fde10adcc3e18..0107f91645aa7d1ec3054e14d03b694c04c0fcfa 100644
(file)
--- 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
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;
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();
}
DXProt::broadcast_ak1a(DXProt::pc21($node->call, 'Gone, re-init') , $dxchan) unless $dxchan->{isolate};
$node->del();
}