X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Flocation.pl;h=8d1f135073264b5e44290eb7ce2e7696192a0247;hb=e39b738850b9a122b60b179e9723e546ddacfd62;hp=a9be3e006d8bccef5b7d881ed59457096219ba19;hpb=64b4171276c84a8df58776608dd9f568adef27b2;p=spider.git diff --git a/cmd/set/location.pl b/cmd/set/location.pl index a9be3e00..8d1f1350 100644 --- 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; +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); @@ -24,8 +25,8 @@ if ($user) { $user->lat($lat); $user->long($long); DXProt::broadcast_all_ak1a(DXProt::pc41($call, 3, $line), $DXProt::me); - if (!$user->qra) { - my $qra = DXBearing::lltos($lat, $long); + unless ($user->qra && DXBearing::is_qra($user->qra) ) { + my $qra = DXBearing::lltoqra($lat, $long); $user->qra($qra); }