Store client version in player data

This commit is contained in:
Vortrex
2022-04-30 13:13:20 -05:00
parent 17ec7155dd
commit 7de23b983f

View File

@@ -368,6 +368,10 @@ function updateConnectionLogOnAuth(client, authId) {
// ===========================================================================
function updateConnectionLogOnClientInfoReceive(client, clientVersion, screenWidth, screenHeight) {
if(getPlayerData(client) != false) {
getPlayerData(client).clientVersion = clientVersion;
}
let dbConnection = connectToDatabase();
if(dbConnection) {
let safeClientVersion = escapeDatabaseString(dbConnection, clientVersion);