Merge branch 'xvar/fix-add-admin-message' into 'master'

Fixed the message shown when adding an admin or moderator to show the correct role

See merge request veloren/veloren!2777
This commit is contained in:
Ben Wallis 2021-08-21 15:40:27 +00:00
commit 08d8b01a2a

View File

@ -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);