X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fwantpc90.pl;fp=cmd%2Fset%2Fwantpc90.pl;h=81cd2e12cad1140563d2d976cb015e65d44e606d;hb=ab10b5e76b152d41273281b30b019e4c82ed22d8;hp=0000000000000000000000000000000000000000;hpb=097f2329b24fd3082e880e789f8a38224784b0e0;p=spider.git diff --git a/cmd/set/wantpc90.pl b/cmd/set/wantpc90.pl new file mode 100644 index 00000000..81cd2e12 --- /dev/null +++ b/cmd/set/wantpc90.pl @@ -0,0 +1,28 @@ +# +# set the want PC90 flag +# +# Copyright (c) 2002 - Dirk Koopman +# +# $Id$ +# + +my ($self, $line) = @_; +my @args = split /\s+/, uc $line; +my $call; +my @out; + +return (1, $self->msg('e5')) if $self->priv < 9; + +foreach $call (@args) { + return (1, $self->msg('e12')) unless is_callsign($call); + + my $user = DXUser->get_current($call); + if ($user) { + $user->wantpc90(1); + $user->put; + push @out, $self->msg('wpc90s', $call); + } else { + push @out, $self->msg('e3', "set/wantpc90", $call); + } +} +return (1, @out);