mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Users: my
command is now aware of is- capabilities
This commit is contained in:
parent
3c3e642bb9
commit
c9fed700ef
@ -543,7 +543,7 @@ sub mycmd {
|
|||||||
$key = lc $key;
|
$key = lc $key;
|
||||||
if (defined $value) {
|
if (defined $value) {
|
||||||
if (not $self->{pbot}->{capabilities}->userhas($u, 'can-modify-capabilities')) {
|
if (not $self->{pbot}->{capabilities}->userhas($u, 'can-modify-capabilities')) {
|
||||||
if ($key =~ m/^can-/ or $self->{pbot}->{capabilities}->exists($key)) {
|
if ($key =~ m/^is-/ or $key =~ m/^can-/ or $self->{pbot}->{capabilities}->exists($key)) {
|
||||||
return "The $key metadata requires the can-modify-capabilities capability, which your user account does not have.";
|
return "The $key metadata requires the can-modify-capabilities capability, which your user account does not have.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user