fixed sh/c/n
[spider.git] / cmd / set / here.pl
index b89d47d779c520642a6b5741f6a3de2c4246d68d..52b1c67c36ebd2ca20aa5168eef561d4ea8d33cd 100644 (file)
@@ -15,12 +15,16 @@ my @out;
 
 foreach $call (@args) {
   $call = uc $call;
-  my $chan = DXChannel->get($call);
-  if ($chan) {
-    $chan->here(1);
-       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_ak1a(DXProt::pc24($ref));
+       push @out, $self->msg('heres', $call);
   } else {
-    push @out, DXM::msg('e3', "Set Here", $call);
+    push @out, $self->msg('e3', "Set Here", $call);
   }
 }
+
 return (1, @out);