added new commands
[spider.git] / cmd / unset / wx.pl
diff --git a/cmd/unset/wx.pl b/cmd/unset/wx.pl
new file mode 100644 (file)
index 0000000..3d874d1
--- /dev/null
@@ -0,0 +1,27 @@
+#
+# set the wx flag
+#
+# Copyright (c) 1999 - Dirk Koopman
+#
+# $Id$
+#
+
+my ($self, $line) = @_;
+my @args = split /\s+/, $line;
+my $call;
+my @out;
+
+@args = $self->call if (!@args || $self->priv < 9);
+
+foreach $call (@args) {
+  $call = uc $call;
+  my $chan = DXChannel->get($call);
+  if ($chan) {
+    $chan->wx(0);
+       push @out, $self->msg('wxu', $call);
+  } else {
+    push @out, $self->msg('e3', "Unset WX Spots", $call);
+  }
+}
+return (1, @out);
+