X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fhere.pl;h=63a32162b4adab4dda170eddbcc7478cb5684e42;hb=a8f8fe60a63b000f22897696fb127fc856c41cb7;hp=7311b5e84e546090f2eec6a475abfbf1d585f346;hpb=0824a94355e5fb2b4c379bb013d66466725629f5;p=spider.git diff --git a/cmd/unset/here.pl b/cmd/unset/here.pl index 7311b5e8..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, DXM::msg('hereu', $call); - } else { - push @out, DXM::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);