projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make the time stored on dups generated locally on spots an integer no of
[spider.git]
/
cmd
/
dx.pl
diff --git
a/cmd/dx.pl
b/cmd/dx.pl
index 7684542eb19251f1d87dafa8253232f4b8bea4e9..2ea40672ad044dbb8b3e7a468b0d4090f9516a5e 100644
(file)
--- 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) {
# 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 {
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
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);
}
return (1, @out);
+
+
+
+
+