spider/cmd/unset/dx.pl
djk 324bd80ed4 1. Do some range checking for spots and WWV in the future (got a WWV for Oct
2034 whhich caused a bit of confusion!)
2. Make WWV spots broadcast them to the users! (as opposed to merely storing
them)(thank you G0RDI).
3. Allow users to do show/announce (thank you JE1SGH).
4. Delay broadcasts to users if they are not in a 'prompt' state (means you can
add messages and see what you are doing on a busy system)
5. Made set/unset dx,ann,wx,talk,wwv do what is expected
6. added set/sys_location and set/set_qra to set the cluster lat/long and qra
7. New messages will now be announced on logon (if there are any)
1999-01-07 00:57:39 +00:00

27 lines
444 B
Perl

#
# unset the dx 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) {
$chan->dx(0);
push @out, $self->msg('dxu', $call);
} else {
push @out, $self->msg('e3', "Unset DX Spots", $call);
}
}
return (1, @out);