projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix disconnect from peer
[spider.git]
/
cmd
/
set
/
privilege.pl
diff --git
a/cmd/set/privilege.pl
b/cmd/set/privilege.pl
index ea9e218ded0ab26a9b85b2df17181373a7475af8..865819e7efcfb5c6232bd69ddd7eae163484990a 100644
(file)
--- a/
cmd/set/privilege.pl
+++ b/
cmd/set/privilege.pl
@@
-5,7
+5,7
@@
#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
-#
$Id$
+#
#
my ($self, $line) = @_;
my @args = split /\s+/, $line;
#
my ($self, $line) = @_;
my @args = split /\s+/, $line;
@@
-15,7
+15,7
@@
my @out;
my $user;
my $ref;
my $user;
my $ref;
-if ($self->priv < 9 || $self->remotecmd) {
+if ($self->priv < 9 || $self->remotecmd
|| $self->inscript
) {
Log('DXCommand', $self->call . " attempted to set privilege $priv for @args");
return (1, $self->msg('e5'));
}
Log('DXCommand', $self->call . " attempted to set privilege $priv for @args");
return (1, $self->msg('e5'));
}
@@
-26,13
+26,13
@@
if ($priv < 0 || $priv > 9) {
foreach $call (@args) {
$call = uc $call;
foreach $call (@args) {
$call = uc $call;
- unless ($self->remotecmd) {
- if ($ref = DXChannel
->
get($call)) {
+ unless ($self->remotecmd
|| $self->inscript
) {
+ if ($ref = DXChannel
::
get($call)) {
$ref->priv($priv);
$ref->user->priv($priv);
$ref->user->put();
}
$ref->priv($priv);
$ref->user->priv($priv);
$ref->user->put();
}
- if (!$ref && ($user = DXUser
->
get($call))) {
+ if (!$ref && ($user = DXUser
::
get($call))) {
$user->priv($priv);
$user->put();
}
$user->priv($priv);
$user->put();
}