change name of sh/qsl to sh/dxqsl
authorminima <minima>
Tue, 11 Mar 2003 11:58:22 +0000 (11:58 +0000)
committerminima <minima>
Tue, 11 Mar 2003 11:58:22 +0000 (11:58 +0000)
Changes
cmd/show/dxqsl.pl [new file with mode: 0644]
cmd/show/qsl.pl [deleted file]

diff --git a/Changes b/Changes
index bb3b749bd91dc22d0c8b25b676a117cb9c550fc9..73f85ef42454603764e7b2bbe1cc04ccd167bdc3 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+12Mar03=======================================================================
+1. Changed the name of show/qsl to show/dxqsl.
 11Mar03=======================================================================
 1. added show/qsl command. This command basically takes the normal output of
 sh/dx qsl and stores it in a database. In order to enable this command you 
diff --git a/cmd/show/dxqsl.pl b/cmd/show/dxqsl.pl
new file mode 100644 (file)
index 0000000..86905d5
--- /dev/null
@@ -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 (sort {$b->[2] <=> $a->[2]} @{$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);
diff --git a/cmd/show/qsl.pl b/cmd/show/qsl.pl
deleted file mode 100644 (file)
index 86905d5..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# 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 (sort {$b->[2] <=> $a->[2]} @{$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);