X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdx.pl;h=3a45f6ce86f35c35f0542700c5642b0bf76fb1d5;hb=6c38bca91e6b75002e15cce29c45a894f675e22e;hp=7684542eb19251f1d87dafa8253232f4b8bea4e9;hpb=0bd9d2811cc42417676a1b11b121681c2377d70a;p=spider.git diff --git a/cmd/dx.pl b/cmd/dx.pl index 7684542e..3a45f6ce 100644 --- a/cmd/dx.pl +++ b/cmd/dx.pl @@ -97,9 +97,10 @@ $line =~ s/\^/:/og; # 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); + my $buf = Spot::formatb($self->user->wantgrid, $freq, $spotted, $main::systime, $line, $spotter); push @out, $buf; } else { + return (1, $self->msg('dup')) if Spot::dup($freq, $spotted, $main::systime, $line); my @spot = Spot::add($freq, $spotted, $main::systime, $line, $spotter, $main::mycall); if (@spot) { # send orf to the users @@ -108,3 +109,8 @@ if (grep $_ eq $spotted, @DXProt::baddx) { } return (1, @out); + + + + +