X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Flockout.pl;h=feb326eb77b5b761cd47fe51533b940f2392bef3;hb=ab811a0c902225075a9bd69749f65594079433a9;hp=b5c010fdd9e3274aac7305f7876ce6f6cf90928a;hpb=c560dd09aefc252be5664ba2dd329b7bc126176d;p=spider.git diff --git a/cmd/set/lockout.pl b/cmd/set/lockout.pl index b5c010fd..feb326eb 100644 --- a/cmd/set/lockout.pl +++ b/cmd/set/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(1); $ref->put(); push @out, $self->msg("lockout", $call);