get the spotted and spotter the right way around
[spider.git] / perl / VE7CC.pm
index 43390fb943341472735a0f599d20d73ab3f8aa60..2e931777969820577dcdadf8c74d7f7f0b13e087 100644 (file)
@@ -34,7 +34,10 @@ sub dx_spot
        # remove interface callsign;
        pop;
        
-       return sprintf("CC11^%0.1f^%s^", $freq, $spotted) . join('^', cldate($t), ztime($t), @_);
+       my $spotter_cc = (Prefix::cty_data($spotted))[5];
+       my $spotted_cc = (Prefix::cty_data($_[1]))[5];
+       
+       return sprintf("CC11^%0.1f^%s^", $freq, $spotted) . join('^', cldate($t), ztime($t), @_, $spotter_cc, $spotted_cc);
 }
 
 1;