my $thing = shift;
return unless $thing;
my $t = hex($thing->{t}) if exists $thing->{t};
- $t ||= $thing->{time} / 60; # if it is an aranea generated
+ $t ||= int($thing->{time} / 60); # if it is an aranea generated
+ my $by = $thing->{b} || $thing->{fromuser} || $thing->{user} || $thing->{origin};
my @spot = Spot::prepare(
$thing->{f},
$thing->{c},
$t*60,
($thing->{i} || ''),
- ($thing->{b} || $thing->{fromuser} || $thing->{user} || $thing->{origin}),
+ $by,
($thing->{o} || $thing->{origin}),
);
+ $spot[4] = $by; # don't modify the spotter SSID
$thing->{spotdata} = \@spot;
return $thing;
}
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];
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;
}