X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=cmd%2Fset%2Fhere.pl;h=e3d56f3ea30c2410b0f8e544aaa39be0d71915b1;hb=a8f8fe60a63b000f22897696fb127fc856c41cb7;hp=136700f5571a78f13a25e48ad589be01c19e79e5;hpb=b060a0a3ee72530aa3f10d453186a662b66d7efe;p=spider.git diff --git a/cmd/set/here.pl b/cmd/set/here.pl index 136700f5..e3d56f3e 100644 --- a/cmd/set/here.pl +++ b/cmd/set/here.pl @@ -14,15 +14,25 @@ my @out; @args = $self->call if (!@args || $self->priv < 9); foreach $call (@args) { - $call = uc $call; - my $ref = DXCluster->get($call); - if ($ref) { - $ref->here(1); - DXProt::broadcast_ak1a(DXProt::pc24($ref)); - push @out, $self->msg('heres', $call); - } else { - push @out, $self->msg('e3', "Set Here", $call); - } + $call = uc $call; + my $dxchan = DXChannel->get($call); + my $ref = Route::User::get($call); + if ($dxchan) { + $dxchan->here(1); + push @out, $self->msg('heres', $call); + if ($ref) { + DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me) ; + $ref->here(1); + } elsif ($ref = Route::Node::get($call)) { + DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me) ; + $ref->here(1); + } else { + $ref = Route::Node::get($call); + $ref->here(1) if $ref; + } + } else { + push @out, $self->msg('e3', "Set Here", $call); + } } return (1, @out);