remove $Id$ strings from everywhere that I can find
[spider.git] / cmd / unset / wwv.pl
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..67e014b5b385b19149b4eb7291dfd6c86dfe40ef 100644 (file)
@@ -0,0 +1,27 @@
+#
+# unset the wwv flag
+#
+# Copyright (c) 1998 - Dirk Koopman
+#
+#
+#
+
+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) {
+    DXChannel::wwv($chan, 0);
+    $chan->user->wantwwv(0);
+       push @out, $self->msg('wwvu', $call);
+  } else {
+    push @out, $self->msg('e3', "Unset WWV", $call);
+  }
+}
+return (1, @out);