1. Added a bit more checking to the rcmd thing to make more sure that this
[spider.git] / cmd / unset / lockout.pl
index 71641c6e38b81bee2c5109039ef7c72e6d480eab..3d17c7b7268f7f6c8ffb80a61127ecb39aa86f0f 100644 (file)
@@ -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);