2 # remove these nodes from the 'local_node' group
4 # Copyright (c) 2006 - Dirk Koopman G1TLH
9 my ($self, $line) = @_;
10 my @args = split /\s+/, uc $line;
13 return (1, $self->msg('e5')) unless $self->priv >= 5;
15 foreach my $call (@args) {
16 my $user = DXUser->get_current($call);
17 push(@out, $self->msg('e3', 'set/localnode', $call)), next unless $user;
18 push(@out, $self->msg('e13', $call)), next unless $user->is_node;
19 my $group = $user->group || [];
20 my @new = grep {$_ ne 'local_node'} @$group;
22 my $dxchan = DXChannel::get($call);
23 $dxchan->group(\@new) if $dxchan;
24 push @out, $self->msg('lgunset', $call);