X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=cmd%2Fset%2Fwantrbn.pl;fp=cmd%2Fset%2Fwantrbn.pl;h=f4aa86e225a78eb089ce50d819d7548963e74061;hb=557d4f48a1d7c30a162967ed23edd674f14504f2;hp=0000000000000000000000000000000000000000;hpb=a341775678db2fd0bdebbb6ae4d10e1e99157f9e;p=spider.git diff --git a/cmd/set/wantrbn.pl b/cmd/set/wantrbn.pl new file mode 100644 index 00000000..f4aa86e2 --- /dev/null +++ b/cmd/set/wantrbn.pl @@ -0,0 +1,27 @@ +# +# set the want rbn (at all) +# +# Copyright (c) 2020 - Dirk Koopman +# +# +# + +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->wantrbn(1); + $user->put; + push @out, $self->msg('wante', 'RBN', $call); + } else { + push @out, $self->msg('e3', "Set wantrbn", $call); + } +} +return (1, @out);