2 # set the qra locator field
4 # Copyright (c) 1998 - Dirk Koopman
9 my ($self, $line) = @_;
10 my $call = $self->call;
13 # remove leading and trailing spaces
17 return (1, $self->msg('qrae1')) if !$line;
18 return (1, $self->msg('qrae2', $line)) unless DXBearing::is_qra($line);
20 $user = DXUser->get_current($call);
24 if (!$user->lat && !$user->long) {
25 my ($lat, $long) = DXBearing::qratoll($line);
28 my $s = DXBearing::lltos($lat, $long);
29 DXProt::broadcast_all_ak1a(DXProt::pc41($call, 3, $s), $DXProt::me);
33 return (1, $self->msg('qra', $line));
35 return (1, $self->msg('namee2', $call));