projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve instability
[spider.git]
/
cmd
/
set
/
location.pl
diff --git
a/cmd/set/location.pl
b/cmd/set/location.pl
index 41f44194005f73d2f404ead1377d220880ef45a8..25db6ba609259c4c3f2f803f4edfe7decd4ca4a4 100644
(file)
--- a/
cmd/set/location.pl
+++ b/
cmd/set/location.pl
@@
-15,6
+15,7
@@
$line =~ s/^\s+//;
$line =~ s/\s+$//;
return (1, $self->msg('loce1')) if !$line;
$line =~ s/\s+$//;
return (1, $self->msg('loce1')) if !$line;
+return (1, $self->msg('loce3', uc $line)) if DXBearing::is_qra($line);
return (1, $self->msg('loce2', $line)) unless $line =~ /\d+ \d+ [NnSs] \d+ \d+ [EeWw]/o;
$user = DXUser->get_current($call);
return (1, $self->msg('loce2', $line)) unless $line =~ /\d+ \d+ [NnSs] \d+ \d+ [EeWw]/o;
$user = DXUser->get_current($call);
@@
-23,7
+24,9
@@
if ($user) {
my ($lat, $long) = DXBearing::stoll($line);
$user->lat($lat);
$user->long($long);
my ($lat, $long) = DXBearing::stoll($line);
$user->lat($lat);
$user->long($long);
- DXProt::broadcast_all_ak1a(DXProt::pc41($call, 3, $line), $DXProt::me);
+ my $s = DXProt::pc41($call, 3, $line);
+ DXProt::eph_dup($s);
+ DXProt::broadcast_all_ak1a($s, $DXProt::me) ;
unless ($user->qra && DXBearing::is_qra($user->qra) ) {
my $qra = DXBearing::lltoqra($lat, $long);
$user->qra($qra);
unless ($user->qra && DXBearing::is_qra($user->qra) ) {
my $qra = DXBearing::lltoqra($lat, $long);
$user->qra($qra);