spider/cmd/set/wwv.pl
minima f7ad460466 fix messages in DXDb.pm to point to the correct ones. Thanks Rene (oz1lqh)
add missing wcys and wcyu messages to Messages. Thanks Rene (again)
upissue version number to 1.50 (finally)
fixed (un)set/wwv and (un)set/wcy so they don't issue spurious messages.
Thanks Rene (oz1lqh)
2002-06-12 20:50:56 +00:00

28 lines
478 B
Perl

#
# set the wwv flag
#
# Copyright (c) 1998 - 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) {
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);