added inscript test to selected commands
[spider.git] / cmd / set / lockout.pl
index b5c010fdd9e3274aac7305f7876ce6f6cf90928a..d25a526108637d53755fef47593900b2dfa6eda4 100644 (file)
@@ -20,7 +20,7 @@ if ($self->priv < 9) {
 
 foreach $call (@args) {
        $call = uc $call;
-       unless ($self->remotecmd) {
+       unless ($self->remotecmd || $self->inscript) {
                if ($ref = DXUser->get_current($call)) {
                        $ref->lockout(1);
                        $ref->put();