mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed the message shown when adding an admin or moderator to show the correct role
This commit is contained in:
parent
f93843ba23
commit
0c55b7b4b3
@ -1331,8 +1331,8 @@ pub fn add_admin(
|
||||
role: role_,
|
||||
}) {
|
||||
None => Some(format!(
|
||||
"Successfully added {} ({}) as an admin!",
|
||||
username, uuid
|
||||
"Successfully added {} ({}) as {:?}!",
|
||||
username, uuid, role
|
||||
)),
|
||||
Some(old_admin) if old_admin.role == role_ => {
|
||||
info!("{} ({}) already has role: {:?}!", username, uuid, role);
|
||||
|
Loading…
Reference in New Issue
Block a user