fixed sh/c/n
[spider.git] / cmd / unset / here.pl
index 7311b5e84e546090f2eec6a475abfbf1d585f346..7e2991528551ef96c05a1fa2ca0373349481ff63 100644 (file)
@@ -15,13 +15,15 @@ my @out;
 
 foreach $call (@args) {
   $call = uc $call;
+  my $dxchan = DXChannel->get($call);
   my $ref = DXCluster->get($call);
-  if ($ref) {
+  if ($dxchan && $ref) {
+       $dxchan->here(0);
     $ref->here(0);
        DXProt::broadcast_ak1a(DXProt::pc24($ref));
-       push @out, DXM::msg('hereu', $call);
+       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);