X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fhere.pl;h=6666d4e72d493eb65f749abff61dbbbc90cce20e;hb=2bd682330ce9b04c95ddf05715cfb643da2df0ea;hp=76adeeac6414b522a0fcdd26c127c5d58cdcfaa0;hpb=07ea293f3919d2da76220b5fbc55b734008ed44c;p=spider.git diff --git a/cmd/unset/here.pl b/cmd/unset/here.pl index 76adeeac..6666d4e7 100644 --- a/cmd/unset/here.pl +++ b/cmd/unset/here.pl @@ -15,12 +15,15 @@ my @out; foreach $call (@args) { $call = uc $call; - my $user = ($call eq $self->call) ? $self->user : DXUser->get($call); - if ($user) { - $user->here(0); - push @out, DXM::msg('hereu', $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, DXM::msg('e3', "Unset Here", $call); + push @out, $self->msg('e3', "Unset Here", $call); } } return (1, @out);