mirror of
git://scm.dxcluster.org/scm/spider
synced 2024-09-21 15:57:12 +00:00
ab811a0c90
and also check the output of thaw more carefully, complain if it isn't a DXUser.
28 lines
458 B
Perl
28 lines
458 B
Perl
#
|
|
# unset the dxgrid flag
|
|
#
|
|
# Copyright (c) 2000 - 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->wantgrid(0);
|
|
$user->put;
|
|
push @out, $self->msg('gridu', $call);
|
|
} else {
|
|
push @out, $self->msg('e3', "Unset Grid", $call);
|
|
}
|
|
}
|
|
return (1, @out);
|