summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index ff649ea4d..bbcb64d33 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -273,11 +273,9 @@ cUUID cClientHandle::GenerateOfflineUUID(const AString & a_Username)
// Online UUIDs are always version 4 (random)
// We use Version 3 (MD5 hash) UUIDs for the offline UUIDs
// This guarantees that they will never collide with an online UUID and can be distinguished.
+ // This is also consistent with the vanilla offline UUID scheme.
- // First make the username lowercase:
- AString lcUsername = StrToLower(a_Username);
-
- return cUUID::GenerateVersion3(lcUsername);
+ return cUUID::GenerateVersion3("OfflinePlayer:" + a_Username);
}