From 93c7b1b846b6755f45eb8dcf8e8816afe13caae1 Mon Sep 17 00:00:00 2001 From: poixen Date: Fri, 6 Jan 2017 21:42:58 +0100 Subject: [PATCH] Added priv level to user details added priv level to user details Fix #1881 This change allows the server operator to enable or disable the internal SMTP client that sends activation emails. With this new configuration option server operators can choose to require email activation yet use an external method of account verification and/or account token notification. --- cockatrice/src/userinfobox.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cockatrice/src/userinfobox.cpp b/cockatrice/src/userinfobox.cpp index 255442a7..68c09eda 100644 --- a/cockatrice/src/userinfobox.cpp +++ b/cockatrice/src/userinfobox.cpp @@ -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");