]> gb7djk.dxcluster.net Git - spider.git/blob - cmd/unset/dxgrid.pl
merged back NEW_ROUTE into trunk
[spider.git] / cmd / unset / dxgrid.pl
1 #
2 # unset the dxgrid flag
3 #
4 # Copyright (c) 2000 - Dirk Koopman
5 #
6 # $Id$
7 #
8
9 my ($self, $line) = @_;
10 my @args = split /\s+/, $line;
11 my $call;
12 my @out;
13
14 @args = $self->call if (!@args || $self->priv < 9);
15
16 foreach $call (@args) {
17         $call = uc $call;
18         my $user = DXUser->get_current($call);
19         if ($user) {
20                 $user->wantgrid(0);
21                 $user->put;
22                 push @out, $self->msg('gridu', $call);
23         } else {
24                 push @out, $self->msg('e3', "Unset Grid", $call);
25         }
26 }
27 return (1, @out);