X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fdx.pl;h=0edf6d545d7fd348aab2ed288d9e652552293313;hb=b060a0a3ee72530aa3f10d453186a662b66d7efe;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=6b6a8002929017b6d4217f68fa492a2d728ee1fe;p=spider.git diff --git a/cmd/set/dx.pl b/cmd/set/dx.pl index e69de29b..0edf6d54 100644 --- a/cmd/set/dx.pl +++ b/cmd/set/dx.pl @@ -0,0 +1,26 @@ +# +# set 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(1); + push @out, $self->msg('dxs', $call); + } else { + push @out, $self->msg('e3', "Set DX Spots", $call); + } +} +return (1, @out);