From d575eccdad09a43d6c705d739a4e1cd82e757091 Mon Sep 17 00:00:00 2001 From: minima Date: Mon, 21 Mar 2005 11:15:36 +0000 Subject: [PATCH] try and get the hops correct --- perl/Thingy/Dx.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl/Thingy/Dx.pm b/perl/Thingy/Dx.pm index 596f5933..feab1b94 100644 --- a/perl/Thingy/Dx.pm +++ b/perl/Thingy/Dx.pm @@ -66,10 +66,11 @@ sub gen_DXProt unless ($thing->{DXProt}) { my $sd = $thing->{spotdata}; my $hops = $thing->{hops} || DXProt::get_hops(11); + $hops = "H$hops" unless $hops =~ /^H/; my $text = $sd->[3] || ' '; $text =~ s/\^/\%5E/g; my $t = $sd->[2]; - $thing->{DXProt} = sprintf "PC11^%.1f^$sd->[1]^%s^%s^%s^$sd->[4]^$sd->[7]^H$hops^~", $sd->[0], cldate($t), ztime($t), $text; + $thing->{DXProt} = sprintf "PC11^%.1f^$sd->[1]^%s^%s^%s^$sd->[4]^$sd->[7]^$hops^~", $sd->[0], cldate($t), ztime($t), $text; } return $thing->{DXProt}; } -- 2.43.0