spider/cmd/set/wx.pl

28 lines
468 B
Perl
Raw Normal View History

1999-01-07 00:59:59 +00:00
#
# 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(1);
$chan->user->wantwx(1);
1999-01-07 00:59:59 +00:00
push @out, $self->msg('wxs', $call);
} else {
push @out, $self->msg('e3', "Set WX Spots", $call);
}
}
return (1, @out);