]> dxcluster.net Git - spider.git/blob - cmd/leave.pl
changed dx by to require at least privilege 1
[spider.git] / cmd / leave.pl
1 #
2 # leave a group
3 #
4 # Copyright (c) 2003 - Dirk Koopman G1TLH
5 #
6 # $Id$
7 #
8
9 my ($self, $line) = @_;
10 my @args = split /\s+/, uc $line;
11 my $group;
12 my @out;
13
14 my @group = @{$self->user->group};
15
16 foreach $group (@args) {
17   @group = grep $_ ne $group, @group; 
18   push @out, $self->msg('leave', $group);
19 }
20
21 $self->user->group(\@group);
22 $self->user->put;
23
24 return (1, @out);