try and get the hops correct
[spider.git] / perl / Thingy / Dx.pm
index aa7322ed12c1a6a4e9e2bc03b6bd2176372f833b..feab1b94c83f93295d82b03beed5a9faf61ad445 100644 (file)
@@ -66,6 +66,7 @@ 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];
@@ -110,7 +111,7 @@ sub handle
        my $dxchan = shift;
 
        my $spot = $thing->{spotdata};
-       if (Spot::dup(@$spot[0..4])) {
+       if (Spot::dup(@$spot[0..4,5])) {
                dbg("PCPROT: Duplicate Spot ignored\n") if isdbg('chanerr');
                return;
        }