add unset/badnode
[spider.git] / cmd / set / here.pl
index aad69d022d657233fddbc6d7fee97d4e5f42655a..114533efa87b8b011d54efc33b992c7e12e704be 100644 (file)
@@ -15,13 +15,15 @@ my @out;
 
 foreach $call (@args) {
   $call = uc $call;
-  my $ref = DXCluster->get($call);
-  if ($ref) {
-    $ref->here(1);
-       DXProt::broadcast_ak1a(DXProt::pc24($ref));
-       push @out, DXM::msg('heres', $call);
+  my $dxchan = DXChannel->get($call);
+  my $ref = DXCluster->get_exact($call);
+  if ($dxchan && $ref) {
+       $dxchan->here(1);
+       $ref->here(1);
+       DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me);
+       push @out, $self->msg('heres', $call);
   } else {
-    push @out, DXM::msg('e3', "Set Here", $call);
+    push @out, $self->msg('e3', "Set Here", $call);
   }
 }