X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdx.pl;h=2ea40672ad044dbb8b3e7a468b0d4090f9516a5e;hb=f8e8ba13693b1a7685601f1847cb8e6493604ed9;hp=7684542eb19251f1d87dafa8253232f4b8bea4e9;hpb=0bd9d2811cc42417676a1b11b121681c2377d70a;p=spider.git diff --git a/cmd/dx.pl b/cmd/dx.pl index 7684542e..2ea40672 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, (int ($main::systime/60)) * 60, $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); + + + + +