diff --git a/ucs/database.cpp b/ucs/database.cpp index edbfe3f4b..25941d1a8 100644 --- a/ucs/database.cpp +++ b/ucs/database.cpp @@ -156,6 +156,11 @@ bool UCSDatabase::VerifyMailKey(const std::string& characterName, int IPAddress, return false; } + if (results.RowCount() == 0) { + LogInfo("No mailkeys found for [{}].", characterName.c_str()); + return false; + } + auto row = results.begin(); // The key is the client's IP address (expressed as 8 hex digits) and an 8 hex digit random string generated