X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdx.pl;h=b80d89bffb0404cafa226c3b059ac424c44ea988;hb=d8b3b94c40205c64e08402f4a4b272a55c14f80d;hp=3a3d6cf09e5a189709a163f30fd41850ec748aba;hpb=e12684676deb425c533e895b5ae63b2b2e2b6891;p=spider.git diff --git a/cmd/dx.pl b/cmd/dx.pl index 3a3d6cf0..b80d89bf 100644 --- a/cmd/dx.pl +++ b/cmd/dx.pl @@ -80,15 +80,19 @@ return (1, @out) if !$valid; # change ^ into : for transmission $line =~ s/\^/:/og; -# Store it here -if (Spot::add($freq, $spotted, $main::systime, $line, $spotter, $main::mycall)) { - # send orf to the users +# Store it here (but only if it isn't baddx) +if (grep $_ eq $spotted, @DXProt::baddx) { my $buf = Spot::formatb($freq, $spotted, $main::systime, $line, $spotter); - DXProt::broadcast_users($buf, 'dx', $buf); - - - # send it orf to the cluster (hang onto your tin helmets)! - DXProt::broadcast_ak1a(DXProt::pc11($spotter, $freq, $spotted, $line)); + push @out, $buf; +} else { + if (Spot::add($freq, $spotted, $main::systime, $line, $spotter, $main::mycall)) { + # send orf to the users + my $buf = Spot::formatb($freq, $spotted, $main::systime, $line, $spotter); + DXProt::broadcast_users($buf, 'dx', $buf); + + # send it orf to the cluster (hang onto your tin helmets) + DXProt::broadcast_ak1a(DXProt::pc11($spotter, $freq, $spotted, $line)); + } } return (1, @out);