X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fdx.pl;h=dcc177a91562ee7bcbad80311cba9a8bf2addae9;hb=148f4d43135748ba5aff985c50720b370ca1e336;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=6b6a8002929017b6d4217f68fa492a2d728ee1fe;p=spider.git diff --git a/cmd/unset/dx.pl b/cmd/unset/dx.pl index e69de29b..dcc177a9 100644 --- a/cmd/unset/dx.pl +++ b/cmd/unset/dx.pl @@ -0,0 +1,27 @@ +# +# 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); + $chan->user->wantdx(0); + push @out, $self->msg('dxu', $call); + } else { + push @out, $self->msg('e3', "Unset DX Spots", $call); + } +} +return (1, @out);