X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Flockout.pl;fp=cmd%2Funset%2Flockout.pl;h=5cc1ac3dda1260cb966a03bc30cd397d4bf2bc15;hb=c560dd09aefc252be5664ba2dd329b7bc126176d;hp=3d17c7b7268f7f6c8ffb80a61127ecb39aa86f0f;hpb=45823b2468645745f706fd467d08b29717942176;p=spider.git diff --git a/cmd/unset/lockout.pl b/cmd/unset/lockout.pl index 3d17c7b7..5cc1ac3d 100644 --- a/cmd/unset/lockout.pl +++ b/cmd/unset/lockout.pl @@ -13,7 +13,10 @@ 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 un-lockout @args"); + return (1, $self->msg('e5')); +} foreach $call (@args) { $call = uc $call; @@ -22,10 +25,12 @@ foreach $call (@args) { $ref->lockout(0); $ref->put(); push @out, $self->msg("lockoutun", $call); + Log('DXCommand', $self->call . " un-locked out $call"); } else { push @out, $self->msg('e3', 'unset/lockout', $call); } } else { + Log('DXCommand', $self->call . " attempted to un-lockout $call remotely"); push @out, $self->msg('sorry'); } }