X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProt.pm;h=5797c63ff8d3c9d0e801eb49ce082053083cdafd;hb=093ac03207bd4468fa89dc7438936b245a92cbe5;hp=2feeda2d3d19282e1bb7ca5fa0d49b078fd6fe84;hpb=15424b325766c68bc04207c71dbaf86f06ca5ffa;p=spider.git diff --git a/perl/DXProt.pm b/perl/DXProt.pm index 2feeda2d..5797c63f 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -203,7 +203,14 @@ sub normal return; } - my $spot = Spot::add($freq, $field[2], $d, $text, $spotter, $field[7]); + my @spot = Spot::add($freq, $field[2], $d, $text, $spotter, $field[7]); + + # + # @spot at this point contains:- + # freq, spotted call, time, text, spotter, spotted cc, spotters cc, + # orig node, spotted itu, spotted cq, spotters itu, spotters cq + # you should be able to route on any of these + # # local processing my $r; @@ -214,9 +221,9 @@ sub normal return if $r; # send orf to the users - if ($spot && $pcno == 11) { + if (@spot && $pcno == 11) { my $buf = Spot::formatb($field[1], $field[2], $d, $text, $spotter); - broadcast_users("$buf\a\a", 'dx', $spot); + broadcast_users("$buf\a\a", 'dx', $spot[0]); } # DON'T be silly and send on PC26s! @@ -418,7 +425,7 @@ sub normal return if $pcno == 27; # broadcast to the eager users - broadcast_users("WWV de $field[7] <$field[2]>: SFI=$sfi, K=$k, A=$i, $field[6]", 'wwv', $wwv ); + broadcast_users("WWV de $field[7] <$field[2]>: SFI=$sfi, A=$k, K=$i, $field[6]", 'wwv', $wwv ); last SWITCH; } @@ -685,8 +692,11 @@ sub send_local_config @nodes = (DXCluster->get_exact($main::mycall)); } else { # create a list of all the nodes that are not connected to this connection - @nodes = DXNode::get_all(); + # and are not themselves isolated, this to make sure that isolated nodes + # don't appear outside of this node + @nodes = DXNode::get_all(); @nodes = grep { $_->dxchan != $self } @nodes; + @nodes = grep { !($_->dxchan && $_->dxchan->isolate) } @nodes; } my @s = $me->pc19(@nodes);