}
-
push @out, $self->msg('dx1', $freq) if !$valid;
# check we have a callsign :-)
my $buf = Spot::formatb($freq, $spotted, $main::systime, $line, $spotter);
push @out, $buf;
} else {
- if (Spot::add($freq, $spotted, $main::systime, $line, $spotter, $main::mycall)) {
+ my @spot = Spot::add($freq, $spotted, $main::systime, $line, $spotter, $main::mycall);
+ if (@spot) {
# send orf to the users
- my $buf = Spot::formatb($freq, $spotted, $main::systime, $line, $spotter);
- DXProt::broadcast_users($buf, 'dx', $buf);
+ DXProt::send_dx_spot($self, DXProt::pc11($spotter, $freq, $spotted, $line), @spot);
+
+# my $buf = Spot::formatb($freq, $spotted, $main::systime, $line, $spotter);
+# DXProt::broadcast_users("$buf\a\a", 'dx', $spot[0]);
# send it orf to the cluster (hang onto your tin helmets)
- DXProt::broadcast_ak1a(DXProt::pc11($spotter, $freq, $spotted, $line));
+# DXProt::broadcast_all_ak1a(DXProt::pc11($spotter, $freq, $spotted, $line), $DXProt::me);
}
}