2 # set the system latitude and longtitude field
4 # Copyright (c) 1998 - Dirk Koopman
9 my ($self, $line) = @_;
10 return (1, $self->msg('e5')) if $self->priv < 9;
12 my $call = $main::mycall;
15 # remove leading and trailing spaces
19 return (1, $self->msg('loce1')) if !$line;
20 return (1, $self->msg('loce3', uc $line)) if is_qra($line);
21 return (1, $self->msg('loce2', $line)) unless is_latlong($line);
23 $user = DXUser->get_current($call);
26 my ($lat, $long) = DXBearing::stoll($line);
29 DXChannel::broadcast_all_nodes(DXProt::pc41($call, 3, $line), $main::me);
31 my $qra = DXBearing::lltos($lat, $long);
36 return (1, $self->msg('sloc', $lat, $long));
38 return (1, $self->msg('namee2', $call));