X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fprefix.pl;h=e8e939e6d02cabd9e52b79b568d280ce1f151da5;hb=a90885c5c10b837b05ef1ebf718fd88e428a3c91;hp=df0f192c451632807d5bbbcb9ef7612ea2f3e40a;hpb=8178d787d7cc8040fa8958197582bba5c80e6f59;p=spider.git diff --git a/cmd/show/prefix.pl b/cmd/show/prefix.pl index df0f192c..e8e939e6 100644 --- a/cmd/show/prefix.pl +++ b/cmd/show/prefix.pl @@ -1,7 +1,7 @@ # # show the prefix info for each callsign or prefix entered # -# $Id$ +# # my ($self, $line) = @_; @@ -20,7 +20,7 @@ foreach $l (@list) { push @out, sprintf "%s DXCC: %d ITU: %d CQ: %d LL: %s %s (%s, %s)", uc $l, $a->dxcc, $a->itu, $a->cq, slat($a->lat), slong($a->long), $pre, $a->name; $l = " " x length $l; } - if ($ans[0]->state) { + if ($USDB::present && $ans[0]->state) { push @out, sprintf "%s City: %s State: %s", $l, join (' ', map {ucfirst} split(/\s+/, lc $ans[0]->city)), $ans[0]->state; } }