X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fhere.pl;h=44fc4d4b99ca234a1fb8bb63c6f37b35894e847c;hb=6624dcdf07d628e8d6a16fc6549edf40be25b7b2;hp=114533efa87b8b011d54efc33b992c7e12e704be;hpb=ca8e84c32e70ea8eb1f30e716b7dbdc92f7e5083;p=spider.git diff --git a/cmd/set/here.pl b/cmd/set/here.pl index 114533ef..44fc4d4b 100644 --- a/cmd/set/here.pl +++ b/cmd/set/here.pl @@ -14,17 +14,22 @@ my @out; @args = $self->call if (!@args || $self->priv < 9); foreach $call (@args) { - $call = uc $call; - my $dxchan = DXChannel->get($call); - my $ref = DXCluster->get_exact($call); - if ($dxchan && $ref) { - $dxchan->here(1); - $ref->here(1); - DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me); - push @out, $self->msg('heres', $call); - } else { - push @out, $self->msg('e3', "Set Here", $call); - } + $call = uc $call; + my $dxchan = DXChannel->get($call); + if ($dxchan) { + $dxchan->here(1); + push @out, $self->msg('heres', $call); + my $ref = Route::User::get($call); + $ref = Route::Node::get($call) unless $ref; + if ($ref) { + $ref->here(1); + my $s = DXProt::pc24($ref); + DXProt::eph_dup($s); + DXProt::broadcast_all_ak1a($s, $DXProt::me) ; + } + } else { + push @out, $self->msg('e3', "Set Here", $call); + } } return (1, @out);