4 # Copyright (c) 1998 Iain Phillips G0RDI
8 my ($self, $line) = @_;
9 my @args = split /\s+/, $line;
11 # my $priv = shift @args;
16 if ($self->priv < 9) {
17 Log('DXCommand', $self->call . " attempted to lockout @args");
18 return (1, $self->msg('e5'));
21 foreach $call (@args) {
23 unless ($self->remotecmd || $self->inscript) {
24 if ($ref = DXUser::get_current($call)) {
27 push @out, $self->msg("lockout", $call);
29 $ref = DXUser->new($call);
32 push @out, $self->msg("lockoutc", $call);
34 Log('DXCommand', $self->call . " locked out $call");
36 Log('DXCommand', $self->call . " attempted to lockout $call remotely");
37 push @out, $self->msg('sorry');