X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FPrefix.pm;h=086e0725284c6524fe11900e252a3fdf082f3345;hb=48f0cb90d0cfbe3037f353fc25adfc33561634fa;hp=028f2cb04fa6c2f679f794ef5012462e83dea6fa;hpb=e044603c96073a6b5e4517d55a7ab48819196439;p=spider.git diff --git a/perl/Prefix.pm b/perl/Prefix.pm index 028f2cb0..086e0725 100644 --- a/perl/Prefix.pm +++ b/perl/Prefix.pm @@ -170,6 +170,7 @@ sub next sub lru_put { my ($call, $ref) = @_; + $call =~ s/^=//; my @s = USDB::get($call); if (@s) { @@ -441,7 +442,7 @@ L1: for ($n = 0; $n < @parts; $n++) { } # we are a pirate! - @nout = matchprefix('Q'); + @nout = matchprefix('QQ'); $misses++; lru_put($call, \@nout); push @out, @nout; @@ -510,16 +511,16 @@ sub cty_data } my %valid = ( + city => '0,City', + cont => '0,Continent', + cq => '0,CQ', + dxcc => '0,DXCC', + itu => '0,ITU', lat => '0,Latitude,slat', long => '0,Longitude,slong', - dxcc => '0,DXCC', name => '0,Name', - itu => '0,ITU', - cq => '0,CQ', state => '0,State', - city => '0,City', utcoff => '0,UTC offset', - cont => '0,Continent', ); sub AUTOLOAD