remove $Id$ strings from everywhere that I can find
[spider.git] / cmd / unset / dx.pl
index b1cf46ec662211f6c953d2f7da65bc76fa466cd1..b7cc4bfd5efebbe4eba0162f41dfdbbc5631bacd 100644 (file)
@@ -3,7 +3,7 @@
 #
 # Copyright (c) 1998 - Dirk Koopman
 #
-# $Id$
+#
 #
 
 my ($self, $line) = @_;
@@ -15,9 +15,10 @@ my @out;
 
 foreach $call (@args) {
   $call = uc $call;
-  my $user = ($call eq $self->call) ? $self->user : DXUser->get($call);
-  if ($user) {
-    $user->dx(0);
+  my $chan = DXChannel::get($call);
+  if ($chan) {
+    $chan->dx(0);
+       $chan->user->wantdx(0);
        push @out, $self->msg('dxu', $call);
   } else {
     push @out, $self->msg('e3', "Unset DX Spots", $call);