+14Oct02=======================================================================
+1. added show/usdb command as a simple, direct interface to the information
+available in the USDB stuff.
13Oct02=======================================================================
1. A large change has occurred. There is now some (optional) US state recog-
nition. This is in its early stages but appears to work for me. You will need
then it will show UTC and UTC + the local offset (not including DST) at
the prefixes or callsigns that you specify.
+=== 0^SHOW/USDB [call ..]^Show information held on the FCC Call database
+Show the City and State of a Callsign held on the FCC database if
+his is being run on this system, eg:-
+
+ sh/usdb k1xx
+
=== 0^SHOW/VHFSTATS^Show the VHF DX Statistics for last 31 days
Show the VHF DX spots breakdown by band for the last 31 days
--- /dev/null
+#
+# show the usdb info for each callsign or prefix entered
+#
+# $Id$
+#
+# Copyright (c) 2002 Dirk Koopman G1TLH
+#
+
+my ($self, $line) = @_;
+my @list = split /\s+/, $line; # generate a list of callsigns
+
+my $l;
+my @out;
+
+return (1, $self->msg('db3', 'FCC USDB')) unless $USDB::present;
+
+#print "line: $line\n";
+foreach $l (@list) {
+ $l = uc $l;
+ my ($city, $state) = USDB::get($l);
+ if ($state) {
+ push @out, sprintf "%-7s -> %s, %s", $l,
+ join (' ', map {ucfirst} split(/\s+/, lc $city)), $state;
+ } else {
+ push @out, sprintf "%-7s -> Not Found", $l;
+ }
+}
+
+return (1, @out);