X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fhere.pl;h=9d2e12be36c895af78cdafc27599f367c3abaea7;hb=6b904a6db275029dd6d7a5cf0a48c1f0770ea8c2;hp=114533efa87b8b011d54efc33b992c7e12e704be;hpb=64b4171276c84a8df58776608dd9f568adef27b2;p=spider.git diff --git a/cmd/set/here.pl b/cmd/set/here.pl index 114533ef..9d2e12be 100644 --- a/cmd/set/here.pl +++ b/cmd/set/here.pl @@ -3,7 +3,7 @@ # # Copyright (c) 1998 - Dirk Koopman # -# $Id$ +# # my ($self, $line) = @_; @@ -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); + DXChannel::broadcast_all_nodes($s, $main::me) ; + } + } else { + push @out, $self->msg('e3', "Set Here", $call); + } } return (1, @out);