From 3f803056c4473d5b1900066724934eeeba673fca Mon Sep 17 00:00:00 2001
From: relesgoe <RElesgoe@users.noreply.github.com>
Date: Sat, 23 May 2020 15:52:11 -0700
Subject: [PATCH] Modify error message in _handle_email_command() for "/verify
 get" command

---
 conf/i18n/common.xml  | 4 ++++
 src/bnetd/command.cpp | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/conf/i18n/common.xml b/conf/i18n/common.xml
index 9554543..defaa66 100644
--- a/conf/i18n/common.xml
+++ b/conf/i18n/common.xml
@@ -2108,5 +2108,9 @@
       <original>The email address is too long, please use another one.</original>
       <translate></translate>
     </item>
+    <item id="526" file="command.cpp" function="_handle_email_command">
+      <original>You have not set an email address yet.</original>
+      <translate></translate>
+    </item>
   </items>
 </root>
\ No newline at end of file
diff --git a/src/bnetd/command.cpp b/src/bnetd/command.cpp
index ceddde0..339c844 100644
--- a/src/bnetd/command.cpp
+++ b/src/bnetd/command.cpp
@@ -5260,7 +5260,7 @@ namespace pvpgn
 				const char* email = account_get_email(account);
 				if (email == nullptr)
 				{
-					message_send_text(c, message_type_error, c, localize(c, "An error has occurred."));
+					message_send_text(c, message_type_error, c, localize(c, "You have not set an email address yet."));
 					return -1;
 				}