Merge pull request #2349 from Cockatrice/priv_level
Added privlevel to User Details
This commit is contained in:
commit
784a75db02
1 changed files with 5 additions and 0 deletions
|
@ -110,6 +110,11 @@ void UserInfoBox::updateInfo(const ServerInfo_User &user)
|
|||
userLevelText = tr("Registered user");
|
||||
else
|
||||
userLevelText = tr("Unregistered user");
|
||||
|
||||
if (user.has_privlevel() && user.privlevel() != "NONE") {
|
||||
userLevelText += " | " + tr("%1").arg(user.privlevel().c_str());
|
||||
}
|
||||
|
||||
userLevelLabel3.setText(userLevelText);
|
||||
|
||||
QString accountAgeString = tr("Unregistered user");
|
||||
|
|
Loading…
Reference in a new issue