X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fsys_location.pl;h=33633b67ecac742a474b3c2020c3379419f294c0;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=aac91823a694117ff464107b070acee534971f1a;hpb=50f6466ca2dff82ca470a4abe327d741cffef61a;p=spider.git diff --git a/cmd/set/sys_location.pl b/cmd/set/sys_location.pl index aac91823..33633b67 100644 --- a/cmd/set/sys_location.pl +++ b/cmd/set/sys_location.pl @@ -3,7 +3,7 @@ # # Copyright (c) 1998 - Dirk Koopman # -# $Id$ +# # my ($self, $line) = @_; @@ -17,9 +17,10 @@ $line =~ s/^\s+//; $line =~ s/\s+$//; return (1, $self->msg('loce1')) if !$line; -return (1, $self->msg('loce2', $line)) unless $line =~ /\d+ \d+ [NnSs] \d+ \d+ [EeWw]/o; +return (1, $self->msg('loce3', uc $line)) if is_qra($line); +return (1, $self->msg('loce2', $line)) unless is_latlong($line); -$user = DXUser->get_current($call); +$user = DXUser::get_current($call); if ($user) { $line = uc $line; my ($lat, $long) = DXBearing::stoll($line);