2 # forward/latlong <node> ...
4 # send out PC41s toward a node for every user that has a lat/long
6 # Copyright (c) 2000 Dirk Koopman G1TLH
11 my ($self, $line) = @_;
12 return (1, $self->msg('e5')) unless $self->priv >= 6;
18 for ( map {uc $_ } split /\s+/, $line ) {
19 if (($dxchan = DXChannel->get($_)) && $dxchan->is_node) {
20 push @dxchan, $dxchan;
22 push @out, $self->msg('e10', $_);
25 return (1, @out) if @out;
29 my ($action, $count, $key, $data);
30 for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) {
31 if ($data =~ m{(?:lat|long) =>}) {
32 my $u = DXUser->get_current($key);
36 my $latlong = DXBearing::lltos($lat, $long) if $lat && $long;
40 my $s = DXProt::pc41($key, 3, $latlong);
41 $s =~ s{H\d+\^~$}{H1^~};
49 return(1, @out, $self->msg('rec', $count));