fixed confusion over DXCluster->get_exact and DXUser->get
[spider.git] / cmd / unset / here.pl
index 48dbae2c4a7bd2aadc2cea5d62a6d5a0ab6bd485..6666d4e72d493eb65f749abff61dbbbc90cce20e 100644 (file)
@@ -15,10 +15,12 @@ my @out;
 
 foreach $call (@args) {
   $call = uc $call;
-  my $ref = DXCluster->get($call);
-  if ($ref) {
+  my $dxchan = DXChannel->get($call);
+  my $ref = DXCluster->get_exact($call);
+  if ($dxchan && $ref) {
+       $dxchan->here(0);
     $ref->here(0);
-       DXProt::broadcast_ak1a(DXProt::pc24($ref));
+       DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me);
        push @out, $self->msg('hereu', $call);
   } else {
     push @out, $self->msg('e3', "Unset Here", $call);