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