remove $Id$ strings from everywhere that I can find
[spider.git] / cmd / set / wwv.pl
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..83039741d3ccaab5c32e040bccd99527f46e80ce 100644 (file)
@@ -0,0 +1,27 @@
+#
+# set 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, 1);
+               $chan->user->wantwwv(1);
+               push @out, $self->msg('wwvs', $call);
+       } else {
+               push @out, $self->msg('e3', "Set WWV", $call);
+       }
+}
+return (1, @out);