mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
Users: my
: lock chanop and admin capabilities behind admin capability
This commit is contained in:
parent
90a5c47f4b
commit
cfc3ad855f
@ -555,7 +555,7 @@ sub mycmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (not $self->{pbot}->{capabilities}->userhas($u, 'admin')) {
|
if (not $self->{pbot}->{capabilities}->userhas($u, 'admin')) {
|
||||||
my @disallowed = qw/name autoop autovoice/;
|
my @disallowed = qw/name autoop autovoice chanop admin/;
|
||||||
if (grep { $_ eq $key } @disallowed) {
|
if (grep { $_ eq $key } @disallowed) {
|
||||||
return "The $key metadata requires the admin capability to set, which your user account does not have.";
|
return "The $key metadata requires the admin capability to set, which your user account does not have.";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user