3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

Users: my: must be admin to set "name"

This commit is contained in:
Pragmatic Software 2020-01-31 03:09:24 -08:00
parent 982cefcebd
commit a5fbb74095

View File

@ -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.";
}