X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Flockout.pl;h=02169f30744ea2ac4fe790218cf64faba24fb634;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=5cc1ac3dda1260cb966a03bc30cd397d4bf2bc15;hpb=c560dd09aefc252be5664ba2dd329b7bc126176d;p=spider.git diff --git a/cmd/unset/lockout.pl b/cmd/unset/lockout.pl index 5cc1ac3d..02169f30 100644 --- a/cmd/unset/lockout.pl +++ b/cmd/unset/lockout.pl @@ -3,7 +3,7 @@ # # Copyright (c) 1998 Iain Phillips G0RDI # -# $Id$ +# # my ($self, $line) = @_; my @args = split /\s+/, $line; @@ -20,8 +20,8 @@ if ($self->priv < 9) { foreach $call (@args) { $call = uc $call; - unless ($self->remotecmd) { - if ($ref = DXUser->get_current($call)) { + unless ($self->remotecmd || $self->inscript) { + if ($ref = DXUser::get_current($call)) { $ref->lockout(0); $ref->put(); push @out, $self->msg("lockoutun", $call);