X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=d88d879ee9678d7209a89c546bb3375cd6e85858;hb=654c9b77424b948f88816e0ef28bf4a27331afdb;hp=ca6a1c4e989cbc264c4b72cf698a6197bf7a6c93;hpb=502f900651a46b96008028945616a3b610d6cc7a;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index ca6a1c4e..d88d879e 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -80,7 +80,15 @@ sub start $self->{dx} = $user->wantdx; $self->{logininfo} = $user->wantlogininfo; $self->{here} = 1; - + + # clean up qra locators + my $qra = $user->qra; + $qra = undef if ($qra && !DXBearing::is_qra($qra)); + unless ($qra) { + my $lat = $user->lat; + my $long = $user->long; + $user->qra(DXBearing::lltoqra($lat, $long)) if (defined $lat && defined $long); + } # add yourself to the database my $node = DXNode->get($main::mycall) or die "$main::mycall not allocated in DXNode database";