X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Flockout.pl;h=d25a526108637d53755fef47593900b2dfa6eda4;hb=0154b38552abaaa4e79ebd9f3e647352acacbcc7;hp=492120b9b2a008f65c9c74b5b67e7fee5d90c1d6;hpb=80a2dd317e5d6b24250388b5177cbf85abee5a85;p=spider.git diff --git a/cmd/set/lockout.pl b/cmd/set/lockout.pl index 492120b9..d25a5261 100644 --- a/cmd/set/lockout.pl +++ b/cmd/set/lockout.pl @@ -13,11 +13,14 @@ my @out; my $user; my $ref; -return (1, $self->msg('e5')) if $self->priv < 9; +if ($self->priv < 9) { + Log('DXCommand', $self->call . " attempted to lockout @args"); + return (1, $self->msg('e5')); +} 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(); @@ -28,7 +31,9 @@ foreach $call (@args) { $ref->put(); push @out, $self->msg("lockoutc", $call); } + Log('DXCommand', $self->call . " locked out $call"); } else { + Log('DXCommand', $self->call . " attempted to lockout $call remotely"); push @out, $self->msg('sorry'); } }