foreach $call (@args) {
$call = uc $call;
- if ($ref = DXUser->get_current($call)) {
- $ref->lockout(1);
- $ref->put();
- push @out, $self->msg("lockout", $call);
+ unless ($self->remotecmd) {
+ if ($ref = DXUser->get_current($call)) {
+ $ref->lockout(1);
+ $ref->put();
+ push @out, $self->msg("lockout", $call);
+ } else {
+ $ref = DXUser->new($call);
+ $ref->lockout(1);
+ $ref->put();
+ push @out, $self->msg("lockoutc", $call);
+ }
} else {
- push @out, $self->msg('e3', 'set/lockout', $call);
+ push @out, $self->msg('sorry');
}
}
return (1, @out);