mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 23:39:24 +01:00
Users: userset
without key lists all keys and values again
This commit is contained in:
parent
51dabf2bf4
commit
3e7798abe0
@ -276,7 +276,7 @@ sub cmd_userset {
|
|||||||
return "There is no user account $name.";
|
return "There is no user account $name.";
|
||||||
}
|
}
|
||||||
|
|
||||||
$key = lc $key;
|
$key = lc $key if defined $key;
|
||||||
|
|
||||||
if (defined $value and not $self->{pbot}->{capabilities}->userhas($u, 'can-modify-capabilities')) {
|
if (defined $value and not $self->{pbot}->{capabilities}->userhas($u, 'can-modify-capabilities')) {
|
||||||
if ($key =~ m/^can-/i or $self->{pbot}->{capabilities}->exists($key)) {
|
if ($key =~ m/^can-/i or $self->{pbot}->{capabilities}->exists($key)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user