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

This commit is contained in:
Ben Wallis 2021-08-21 15:43:33 +01:00
parent f93843ba23
commit 0c55b7b4b3

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