X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fhere.pl;h=59b2080a3197d8131a0d13a31bf82ec5d9fae9b1;hb=refs%2Fheads%2Fspider;hp=6bc62ae9740bd00deebfa96a9e6aadb508d6068a;hpb=64b4171276c84a8df58776608dd9f568adef27b2;p=spider.git diff --git a/cmd/unset/here.pl b/cmd/unset/here.pl index 6bc62ae9..59b2080a 100644 --- a/cmd/unset/here.pl +++ b/cmd/unset/here.pl @@ -3,7 +3,7 @@ # # Copyright (c) 1998 - Dirk Koopman # -# $Id$ +# # my ($self, $line) = @_; @@ -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($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);