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_, role: role_,
}) { }) {
None => Some(format!( None => Some(format!(
"Successfully added {} ({}) as an admin!", "Successfully added {} ({}) as {:?}!",
username, uuid username, uuid, role
)), )),
Some(old_admin) if old_admin.role == role_ => { Some(old_admin) if old_admin.role == role_ => {
info!("{} ({}) already has role: {:?}!", username, uuid, role); info!("{} ({}) already has role: {:?}!", username, uuid, role);