# send it if it isn't the except list and isn't isolated and still has a hop count
foreach $dxchan (@dxchan) {
next if $dxchan == $self;
- my $routeit = adjust_hops($dxchan, $line); # adjust its hop count by node name
my $filter = Filter::it($dxchan->{spotfilter}, @spot) if $dxchan->{spotfilter};
+ my $routeit = adjust_hops($dxchan, $line); # adjust its hop count by node name
+ next unless $routeit;
if ($filter) {
$dxchan->send($routeit) if $routeit;
} else {
- $dxchan->send($routeit) unless $dxchan->{isolate} || !$routeit;
+ $dxchan->send($routeit) unless $dxchan->{isolate} || $self->{isolate};
}
}
# automagically closes the output file (if any)).
$fp->writeunix($out[2], $buf);
- return (@spot, $spotted_itu, $spotted_cq, $spotter_itu, $spotter_cq);
+ return (@out, $spotted_itu, $spotted_cq, $spotter_itu, $spotter_cq);
}
# search the spot database for records based on the field no and an expression