X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fforward%2Fopername.pl;h=08333724dcd251233635828b602483251e16b4c6;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=314a9e37b0b5d54e24fa3f334ba94d98736a3dcb;hpb=e7e2be52df572de51831fa1b4cde4018aef791a9;p=spider.git diff --git a/cmd/forward/opername.pl b/cmd/forward/opername.pl index 314a9e37..08333724 100644 --- a/cmd/forward/opername.pl +++ b/cmd/forward/opername.pl @@ -22,18 +22,40 @@ if ($self->priv < 1) { my $call; foreach $call (@f) { - my $ref = DXUser->get_current($call); + my $ref = DXUser::get_current($call); if ($ref) { my $name = $ref->name; my $qth = $ref->qth; my $lat = $ref->lat; my $long = $ref->long; my $node = $ref->homenode; + my $qra = $ref->qra; my $latlong = DXBearing::lltos($lat, $long) if $lat && $long; - DXProt::broadcast_all_ak1a(DXProt::pc41($call, 1, $name), $DXProt::me) if $name; - DXProt::broadcast_all_ak1a(DXProt::pc41($call, 2, $qth), $DXProt::me) if $qth; - DXProt::broadcast_all_ak1a(DXProt::pc41($call, 3, $latlong), $DXProt::me) if $latlong; - DXProt::broadcast_all_ak1a(DXProt::pc41($call, 4, $node), $DXProt::me) if $node; + if ($name) { + my $l = DXProt::pc41($main::me, $call, 1, $name); + DXProt::eph_dup($l); + DXChannel::broadcast_all_nodes($l, $main::me) ; + } + if ($qth) { + my $l = DXProt::pc41($call, 2, $qth); + DXProt::eph_dup($l); + DXChannel::broadcast_all_nodes($l, $main::me) ; + } + if ($latlong) { + my $l = DXProt::pc41($call, 3, $latlong); + DXProt::eph_dup($l); + DXChannel::broadcast_all_nodes($l, $main::me) ; + } + if ($node) { + my $l = DXProt::pc41($call, 4, $node); + DXProt::eph_dup($l); + DXChannel::broadcast_all_nodes($l, $main::me) ; + } + if ($qra) { + my $l = DXProt::pc41($call, 5, $qra); + DXProt::eph_dup($l); + DXChannel::broadcast_all_nodes($l, $main::me) ; + } } }