X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fhere.pl;h=19db8dbd9ffdb647bf55e85426f981cf25a15dd0;hb=50f6466ca2dff82ca470a4abe327d741cffef61a;hp=6666d4e72d493eb65f749abff61dbbbc90cce20e;hpb=a453254d687774f352822492d500330a09fd7ebe;p=spider.git diff --git a/cmd/unset/here.pl b/cmd/unset/here.pl index 6666d4e7..19db8dbd 100644 --- a/cmd/unset/here.pl +++ b/cmd/unset/here.pl @@ -14,16 +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(0); - $ref->here(0); - DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me); - push @out, $self->msg('hereu', $call); - } else { - push @out, $self->msg('e3', "Unset Here", $call); - } + $call = uc $call; + my $dxchan = DXChannel->get($call); + if ($dxchan) { + $dxchan->here(0); + push @out, $self->msg('hereu', $call); + my $ref = Route::User::get($call); + $ref = Route::Node::get($call) unless $ref; + if ($ref) { + $ref->here(0); + my $s = DXProt::pc24($ref); + DXProt::eph_dup($s); + DXChannel::broadcast_all_nodes($s, $main::me) ; + } + } else { + push @out, $self->msg('e3', "Unset Here", $call); + } } + return (1, @out);