X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FVE7CC.pm;h=729b91c07f43359a6856f9b831ff4857cf6f8e8f;hb=17b1614af3840c2c74bee181290eb094f8ed4a00;hp=c0138cd73bb31eac30d811594160a7d2737d1aff;hpb=b9dffeff7239952814342dad19db3a51def6fab7;p=spider.git diff --git a/perl/VE7CC.pm b/perl/VE7CC.pm index c0138cd7..729b91c0 100644 --- a/perl/VE7CC.pm +++ b/perl/VE7CC.pm @@ -27,7 +27,7 @@ sub dx_spot my $t = shift; my $loc_spotted = ''; my $loc_spotter = ''; - my $ref = DXUser->get_current($spotted); + my $ref = DXUser::get_current($spotted); if ($ref) { my $loc = $ref->qra || ''; $loc_spotted =substr($loc, 0, 4) if $loc; @@ -42,13 +42,15 @@ sub dx_spot my $spotted_cc = (Prefix::cty_data($spotted))[5]; my $spotter_cc = (Prefix::cty_data($_[1]))[5]; - $ref = DXUser->get_current($_[1]); + $ref = DXUser::get_current($_[1]); if ($ref) { my $loc = $ref->qra || ''; $loc_spotter = substr($loc, 0, 4) if $loc; } + my $text = $_[4]; + $text =~ s/\^/~/g; - return sprintf("CC11^%0.1f^%s^", $freq, $spotted) . join('^', cldate($t), ztime($t), @_, $spotted_cc, $spotter_cc, $loc_spotted, $loc_spotter); + return sprintf("CC11^%0.1f^%s^", $freq, $spotted) . join('^', cldate($t), ztime($t), @_[0..3], $text, @_[5..10], $spotted_cc, $spotter_cc, $loc_spotted, $loc_spotter); } 1;