mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-25 19:44:26 +01:00
Users: fix undefined value warning
This commit is contained in:
parent
1c779195b5
commit
3c3e642bb9
@ -446,7 +446,7 @@ sub userset {
|
|||||||
return "To modify admin user accounts your user account must have the can-modify-admins capability.";
|
return "To modify admin user accounts your user account must have the can-modify-admins capability.";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($self->{pbot}->{capabilities}->exists($key) and not $self->{pbot}->{capabilities}->userhas($u, $key)) {
|
if (defined $key and $self->{pbot}->{capabilities}->exists($key) and not $self->{pbot}->{capabilities}->userhas($u, $key)) {
|
||||||
return "To set the $key capability your user account must also have it." unless $self->{pbot}->{capabilities}->userhas($u, 'botowner');
|
return "To set the $key capability your user account must also have it." unless $self->{pbot}->{capabilities}->userhas($u, 'botowner');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user