mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
Users: my
: must be admin to set "name"
This commit is contained in:
parent
982cefcebd
commit
a5fbb74095
@ -503,7 +503,7 @@ sub mycmd {
|
||||
$key = lc $key;
|
||||
|
||||
if (defined $value and $u->{level} == 0) {
|
||||
my @disallowed = qw/level autoop autovoice/;
|
||||
my @disallowed = qw/name level autoop autovoice/;
|
||||
if (grep { $_ eq $key } @disallowed) {
|
||||
return "You must be an admin to set $key.";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user