1. Do some range checking for spots and WWV in the future (got a WWV for Oct
[spider.git] / cmd / unset / dx.pl
index 0ae6cc97117fe72b24bfd23da74b0dd5f152fa3e..62e2a33450560cba3fe559376ba586f588cdb374 100644 (file)
@@ -15,12 +15,12 @@ my @out;
 
 foreach $call (@args) {
   $call = uc $call;
-  my $user = ($call eq $self->call) ? $self->user : DXUser->get($call);
-  if ($user) {
-    $user->dx(0);
-       push @out, DXM::msg('dxu', $call);
+  my $chan = DXChannel->get($call);
+  if ($chan) {
+    $chan->dx(0);
+       push @out, $self->msg('dxu', $call);
   } else {
-    push @out, DXM::msg('e3', "Unset DX Spots", $call);
+    push @out, $self->msg('e3', "Unset DX Spots", $call);
   }
 }
 return (1, @out);