X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdx.pl;h=b80d89bffb0404cafa226c3b059ac424c44ea988;hb=d8b3b94c40205c64e08402f4a4b272a55c14f80d;hp=763bf9b0aace735bd8e7db629724c2c594fe15d6;hpb=9a55af9586711ecdea8dc9b0da38509119fa8090;p=spider.git diff --git a/cmd/dx.pl b/cmd/dx.pl index 763bf9b0..b80d89bf 100644 --- a/cmd/dx.pl +++ b/cmd/dx.pl @@ -77,15 +77,22 @@ if ($spotted le ' ') { return (1, @out) if !$valid; -# Store it here -if (Spot::add($freq, $spotted, $main::systime, $line, $spotter)) { - # send orf to the users - my $buf = Spot::formatb($freq, $spotted, $main::systime, $line, $spotter); - DXProt::broadcast_users($buf); - +# change ^ into : for transmission +$line =~ s/\^/:/og; - # send it orf to the cluster (hang onto your tin helmets)! - DXProt::broadcast_ak1a(DXProt::pc11($spotter, $freq, $spotted, $line)); +# 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); + 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);