X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fhere.pl;h=6bc62ae9740bd00deebfa96a9e6aadb508d6068a;hb=dd864f3c8ed69e63f9873bf1728813a7cc56aa79;hp=76adeeac6414b522a0fcdd26c127c5d58cdcfaa0;hpb=07ea293f3919d2da76220b5fbc55b734008ed44c;p=spider.git diff --git a/cmd/unset/here.pl b/cmd/unset/here.pl index 76adeeac..6bc62ae9 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($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);