X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fhere.pl;h=63a32162b4adab4dda170eddbcc7478cb5684e42;hb=8eb1f5dcc25a223fa06c5e8b5bf7dbe97d42f6dd;hp=48dbae2c4a7bd2aadc2cea5d62a6d5a0ab6bd485;hpb=b060a0a3ee72530aa3f10d453186a662b66d7efe;p=spider.git diff --git a/cmd/unset/here.pl b/cmd/unset/here.pl index 48dbae2c..63a32162 100644 --- a/cmd/unset/here.pl +++ b/cmd/unset/here.pl @@ -14,14 +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(0); - DXProt::broadcast_ak1a(DXProt::pc24($ref)); - push @out, $self->msg('hereu', $call); - } else { - push @out, $self->msg('e3', "Unset Here", $call); - } + $call = uc $call; + my $dxchan = DXChannel->get($call); + my $ref = Route::User::get($call); + if ($dxchan) { + $dxchan->here(0); + push @out, $self->msg('hereu', $call); + if ($ref) { + DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me) ; + $ref->here(0); + } elsif ($ref = Route::Node::get($call)) { + DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me) ; + $ref->here(0); + } else { + $ref = Route::Node::get($call); + $ref->here(0) if $ref; + } + } else { + push @out, $self->msg('e3', "Unset Here", $call); + } } + return (1, @out);