]> dxcluster.net Git - spider.git/blob - cmd/join.pl
added PC17 "improvement"
[spider.git] / cmd / join.pl
1 #
2 # join 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   push @group, $group unless grep $_ eq $group, @group; 
18   push @out, $self->msg('join', $group);
19 }
20
21 $self->user->group(\@group);
22 $self->user->put;
23
24 return (1, @out);