X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fqsl.pl;fp=cmd%2Fshow%2Fqsl.pl;h=082dc8baacf293a6468ce951fcfbfa3b055c0656;hb=bcf2892aa7f3c9957ee61365a6e032dd93044834;hp=0000000000000000000000000000000000000000;hpb=f726c14c2f603c02eabecc4526e588354a3a7e0b;p=spider.git diff --git a/cmd/show/qsl.pl b/cmd/show/qsl.pl new file mode 100644 index 00000000..082dc8ba --- /dev/null +++ b/cmd/show/qsl.pl @@ -0,0 +1,31 @@ +# +# Display QSL information from the local database +# +# Copyright (c) 2003 Dirk Koopman G1TLH +# +# $Id$ +# + +my ($self, $line) = @_; +my @call = split /\s+/, uc $line; +my @out; + +$DB::single=1; + +return (1, $self->msg('db3', 'QSL')) unless $QSL::dbm; + +push @out, $self->msg('qsl1'); +foreach my $call (@call) { + my $q = QSL::get($call); + if ($q) { + my $c = $call; + for (@{$q->[1]}) { + push @out, sprintf "%-14s %-10s %4d %s %s", $c, $_->[0], $_->[1], cldatetime($_->[2]), $_->[3]; + $c = ""; + } + } else { + push @out, $self->msg('db2', $call, 'QSL'); + } +} + +return (1, @out);