spider/cmd/unset/dxgrid.pl
Dirk Koopman ab811a0c90 Change DXUser->get* to DXUser::get*
and also check the output of thaw more carefully, complain if it
isn't a DXUser.
2008-05-06 15:00:00 +01:00

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);