fix LoTW spot prefixes in comment text
[spider.git] / perl / Spot.pm
index b4fd27c4c1f5c69c757120742f61fecc62b5b568..4d87be3723e2317d8b7d6718da37dd9bfb66ed55 100644 (file)
@@ -169,7 +169,7 @@ sub prepare
        my @out = @_[0..4];      # just up to the spotter
 
        # normalise frequency
-       $out[0] = sprintf "%.1f", $out[0]+0.05;
+       $out[0] = sprintf "%.1f", $out[0];
   
        # remove ssids and /xxx if present on spotter
        $out[4] =~ s/-\d+$//o;
@@ -407,6 +407,7 @@ sub dup
                }
        }
        my $otext = $text;
+       $text =~ s/^\+\w+\s*//;                 # remove leading LoTW callsign
        $text = pack("C*", map {$_ & 127} unpack("C*", $text));
        $text =~ s/\s{2,}[\dA-Z]?[A-Z]\d?$// if length $text > 24;
        $text =~ s/[^\w]//g;