X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=cmd%2Funset%2Flockout.pl;h=3d17c7b7268f7f6c8ffb80a61127ecb39aa86f0f;hb=80a2dd317e5d6b24250388b5177cbf85abee5a85;hp=71641c6e38b81bee2c5109039ef7c72e6d480eab;hpb=0a6cbd253403c416abea676d1bc5fa581caeb354;p=spider.git diff --git a/cmd/unset/lockout.pl b/cmd/unset/lockout.pl index 71641c6e..3d17c7b7 100644 --- a/cmd/unset/lockout.pl +++ b/cmd/unset/lockout.pl @@ -17,12 +17,16 @@ return (1, $self->msg('e5')) if $self->priv < 9; foreach $call (@args) { $call = uc $call; - if ($ref = DXUser->get_current($call)) { - $ref->lockout(0); - $ref->put(); - push @out, $self->msg("lockoutun", $call); + unless ($self->remotecmd) { + if ($ref = DXUser->get_current($call)) { + $ref->lockout(0); + $ref->put(); + push @out, $self->msg("lockoutun", $call); + } else { + push @out, $self->msg('e3', 'unset/lockout', $call); + } } else { - push @out, $self->msg('e3', 'unset/lockout', $call); + push @out, $self->msg('sorry'); } } return (1, @out);