2 # unlock a locked out user
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 un-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("lockoutun", $call);
28 Log('DXCommand', $self->call . " un-locked out $call");
30 push @out, $self->msg('e3', 'unset/lockout', $call);
33 Log('DXCommand', $self->call . " attempted to un-lockout $call remotely");
34 push @out, $self->msg('sorry');