my $node = $ref->homenode;
my $latlong = DXBearing::lltos($lat, $long) if $lat && $long;
if ($name) {
- my $l = DXProt::pc41($call, 1, $name);
+ my $l = DXProt::pc41($DXProt::me, $call, 1, $name);
DXProt::eph_dup($l);
DXProt::broadcast_all_ak1a($l, $DXProt::me) ;
}
# get all the users connected on the above nodes and send them out
foreach $n (@localnodes, @remotenodes) {
- send_route($self, \&pc16, 1, $n, map {my $r = Route::User::get($_); $r ? ($r) : ()} $n->users);
+ if ($r) {
+ send_route($self, \&pc16, 1, $n, map {my $r = Route::User::get($_); $r ? ($r) : ()} $n->users);
+ } else {
+ dbg('chan', "sent a null value");
+ }
}
}
my $call = shift;
$call = shift if ref $call;
- my ($sort, $info) = @_;
- $sort ||= '0';
- $info ||= ' ';
+ my $sort = shift || '0';
+ my $info = shift || ' ';
my $hops = shift || get_hops(41);
return "PC41^$call^$sort^$info^$hops^~";
}