From 80dcead113ac632d103c5aabb1df6f4ff5aeb9f5 Mon Sep 17 00:00:00 2001 From: relesgoe Date: Sat, 8 Aug 2020 10:46:17 -0700 Subject: [PATCH] Update /finger command to show whether the account's email is verified or not --- conf/i18n/common.xml | 8 ++++++++ src/bnetd/command.cpp | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/conf/i18n/common.xml b/conf/i18n/common.xml index 9b17829..8eb220f 100644 --- a/conf/i18n/common.xml +++ b/conf/i18n/common.xml @@ -2123,5 +2123,13 @@ An error has occurred, could not send a verification email. + + (Verified) + + + + (Unverified) + + \ No newline at end of file diff --git a/src/bnetd/command.cpp b/src/bnetd/command.cpp index b847d22..3aadd99 100644 --- a/src/bnetd/command.cpp +++ b/src/bnetd/command.cpp @@ -3527,7 +3527,9 @@ namespace pvpgn account_get_auth_mute(account) == 1 ? yes : no); message_send_text(c, message_type_info, c, msgtemp); - msgtemp = localize(c, "Email: {}", account_get_email(account)); + msgtemp = localize(c, "Email: {} {}", + account_get_email(account), + account_get_email_verified(account) == 0 ? localize(c, "(Verified)") : localize(c, "(Unverified)")); message_send_text(c, message_type_info, c, msgtemp); msgtemp = localize(c, "Last login Owner: {}", account_get_ll_owner(account));