X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Flockout.pl;h=492120b9b2a008f65c9c74b5b67e7fee5d90c1d6;hb=80a2dd317e5d6b24250388b5177cbf85abee5a85;hp=911a82887977390027ce527b274723187d01d341;hpb=f38b81521d0430ef67023c3afaab2f4180e5b3bf;p=spider.git diff --git a/cmd/set/lockout.pl b/cmd/set/lockout.pl index 911a8288..492120b9 100644 --- a/cmd/set/lockout.pl +++ b/cmd/set/lockout.pl @@ -17,15 +17,19 @@ return (1, $self->msg('e5')) if $self->priv < 9; foreach $call (@args) { $call = uc $call; - if ($ref = DXUser->get_current($call)) { - $ref->lockout(1); - $ref->put(); - push @out, $self->msg("lockout", $call); + unless ($self->remotecmd) { + if ($ref = DXUser->get_current($call)) { + $ref->lockout(1); + $ref->put(); + push @out, $self->msg("lockout", $call); + } else { + $ref = DXUser->new($call); + $ref->lockout(1); + $ref->put(); + push @out, $self->msg("lockoutc", $call); + } } else { - $ref = DXUser->new($call); - $ref->lockout(1); - $ref->put(); - push @out, $self->msg("lockoutc", $call); + push @out, $self->msg('sorry'); } } return (1, @out);