spider/cmd/unset/wcy.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
482 B
Perl

#
# unset the wcy flag
#
# Copyright (c) 2001 - 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::wcy($chan, 0);
$chan->user->wantwcy(0);
push @out, $self->msg('wcyu', $call);
} else {
push @out, $self->msg('e3', "Unset WCY", $call);
}
}
return (1, @out);