]> dxcluster.org Git - spider.git/blob - cmd/unset/announce.pl
1. Do some range checking for spots and WWV in the future (got a WWV for Oct
[spider.git] / cmd / unset / announce.pl
1 #
2 # set the announce flag
3 #
4 # Copyright (c) 1998 - Dirk Koopman
5 #
6 # $Id$
7 #
8
9 my ($self, $line) = @_;
10 my @args = split /\s+/, $line;
11 my $call;
12 my @out;
13
14 @args = $self->call if (!@args || $self->priv < 9);
15
16 foreach $call (@args) {
17   $call = uc $call;
18   my $chan = DXChannel->get($call);
19   if ($chan) {
20     $chan->ann(0);
21         push @out, $self->msg('annu', $call);
22   } else {
23     push @out, $self->msg('e3', "Unset Announce", $call);
24   }
25 }
26 return (1, @out);