projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8634689
)
add dxcc as ADIF country code sh/qrz
author
Dirk Koopman
<djk@tobit.co.uk>
Thu, 18 Aug 2016 23:25:24 +0000
(
00:25
+0100)
committer
Dirk Koopman
<djk@tobit.co.uk>
Thu, 18 Aug 2016 23:25:24 +0000
(
00:25
+0100)
Changes
patch
|
blob
|
history
cmd/show/qrz.pl
patch
|
blob
|
history
diff --git
a/Changes
b/Changes
index 658bc05e7ac603b1fcd37f2e1fd264351e5d8ead..d27204dbbe3d9d9dcfa0d8908f29df93279b6315 100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-1,6
+1,7
@@
18Aug16=======================================================================
1. Add CTY-2610
2. put back msg total in & total out for mrtg and background mrtg
18Aug16=======================================================================
1. Add CTY-2610
2. put back msg total in & total out for mrtg and background mrtg
+3. add dxcc == ADIF country code.
16Aug16=======================================================================
1. Mega change to push all local data in $root/local_data and where there
is duplication with system data (still in $root/data) then use whichever
16Aug16=======================================================================
1. Mega change to push all local data in $root/local_data and where there
is duplication with system data (still in $root/data) then use whichever
diff --git
a/cmd/show/qrz.pl
b/cmd/show/qrz.pl
index 9a7d921fd6403268c6999e4932710c1ef99ff791..5863767ea12c9e9cf469748e778fe9534042c991 100644
(file)
--- a/
cmd/show/qrz.pl
+++ b/
cmd/show/qrz.pl
@@
-9,9
+9,10
@@
# Copyright (c) 2001-2013 Dirk Koopman G1TLH
#
# Copyright (c) 2001-2013 Dirk Koopman G1TLH
#
-use vars qw (%allowed);
+use vars qw (%allowed
%convert
);
-%allowed = qw(call 1 fname 1 name 1 addr2 1 state 1 country 1 lat 1 lon 1 county 1 moddate 1 qslmgr 1 grid 1 Error 1 );
+%allowed = qw(call 1 fname 1 name 1 addr2 1 state 1 country 1 lat 1 lon 1 county 1 moddate 1 qslmgr 1 grid 1 Error 1 dxcc 1 );
+%convert = qw(dxcc ADIF);
sub _send
{
sub _send
{
@@
-21,6
+22,7
@@
sub _send
my ($tag, $data) = $msg =~ m|^\s*<(\w+)>(.*)</|;
if ($allowed{$tag}) {
my ($tag, $data) = $msg =~ m|^\s*<(\w+)>(.*)</|;
if ($allowed{$tag}) {
+ $tag = $convert{$tag} if exists $convert{$tag};
my $prefix = $conn->{prefix} || ' ';
$dxchan->send($prefix . sprintf("%-10s: $data", $tag));
}
my $prefix = $conn->{prefix} || ' ';
$dxchan->send($prefix . sprintf("%-10s: $data", $tag));
}