X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fdxcq.pl;fp=cmd%2Fset%2Fdxcq.pl;h=c70ff168a2e822a19961572b67a2aecaa17ea5e1;hb=3fc0f2823c2505b08730286880ad8738963bca17;hp=0000000000000000000000000000000000000000;hpb=353dac9d2485b5e3ad0a93246a1ac550d93d05a4;p=spider.git diff --git a/cmd/set/dxcq.pl b/cmd/set/dxcq.pl new file mode 100644 index 00000000..c70ff168 --- /dev/null +++ b/cmd/set/dxcq.pl @@ -0,0 +1,27 @@ +# +# set the dxdxcq flag +# +# Copyright (c) 2000 - 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 = DXUser->get_current($call); + if ($user) { + $user->wantdxcq(1); + $user->put; + push @out, $self->msg('dxcqs', $call); + } else { + push @out, $self->msg('e3', "Set DX CQ", $call); + } +} +return (1, @out);