projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
again?
[spider.git]
/
cmd
/
init.pl
diff --git
a/cmd/init.pl
b/cmd/init.pl
index 36309e93ab6408d878c99c7bc58fde10adcc3e18..fd3c045b26771e2c4b36155048bc51b49536c1df 100644
(file)
--- a/
cmd/init.pl
+++ b/
cmd/init.pl
@@
-17,13
+17,13
@@
foreach $call (@calls) {
next if $call eq $main::mycall;
my $dxchan = DXChannel->get($call);
if ($dxchan) {
next if $call eq $main::mycall;
my $dxchan = DXChannel->get($call);
if ($dxchan) {
- if ($dxchan->is_
ak1a
) {
+ if ($dxchan->is_
node
) {
# first clear out any nodes on this dxchannel
# 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();
}