2 # set the maximum no of connections this user/node can have
3 # whilst connecting to this node
5 # Copyright (c) 2008 - Dirk Koopman G1TLH
8 my ($self, $line) = @_;
9 my @args = split /\s+/, $line;
13 my $val = shift @args if @args;
16 return (1, $self->msg('e5')) if $self->priv < 8;
17 return (1, $self->msg('e14')) unless defined $val;
18 return (1, $self->msg('e12')) unless @args;
20 foreach $call (@args) {
22 $user = DXUser::get_current($call);
24 $user->maxconnect($val);
26 push @out, $self->msg('maxconnect', $call, $val);
28 push @out, $self->msg('e3', "set/maxconnect", $call);