2 # VE7CC variations for DXCommandmode
4 # This is done this way because a) there aren't very many and
5 # b) because it isn't easy to reliably rebless the object in
24 my $self = shift; # this may be useful some day
30 my $ref = DXUser::get_current($spotted);
32 my $loc = $ref->qra || '';
33 $loc_spotted =substr($loc, 0, 4) if $loc;
36 # remove any items above the top of the max spot data
39 # make sure both US states are defined
43 my $spotted_cc = (Prefix::cty_data($spotted))[5];
44 my $spotter_cc = (Prefix::cty_data($_[1]))[5];
45 $ref = DXUser::get_current($_[1]);
47 my $loc = $ref->qra || '';
48 $loc_spotter = substr($loc, 0, 4) if $loc;
51 return sprintf("CC11^%0.1f^%s^", $freq, $spotted) . join('^', cldate($t), ztime($t), @_, $spotted_cc, $spotter_cc, $loc_spotted, $loc_spotter);