X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fsys_location.pl;h=428d5bfcb83fbe0e6f47ffeb2ea6edb647479d6e;hb=16d19a14ff3c7622cb81ab0312d674fde6b2af83;hp=3202a52181af2637830f2c2eded8d5852d3da1d4;hpb=1f9712e804601df2e26f70ef88410c94546f44af;p=spider.git diff --git a/cmd/set/sys_location.pl b/cmd/set/sys_location.pl index 3202a521..428d5bfc 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,7 +17,8 @@ $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); if ($user) { @@ -25,7 +26,7 @@ if ($user) { my ($lat, $long) = DXBearing::stoll($line); $user->lat($lat); $user->long($long); - DXProt::broadcast_ak1a(DXProt::pc41($call, 3, $line), $DXProt::me); + DXChannel::broadcast_all_nodes(DXProt::pc41($call, 3, $line), $main::me); if (!$user->qra) { my $qra = DXBearing::lltos($lat, $long); $user->qra($qra);