Store client version in player data
This commit is contained in:
@@ -368,6 +368,10 @@ function updateConnectionLogOnAuth(client, authId) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function updateConnectionLogOnClientInfoReceive(client, clientVersion, screenWidth, screenHeight) {
|
function updateConnectionLogOnClientInfoReceive(client, clientVersion, screenWidth, screenHeight) {
|
||||||
|
if(getPlayerData(client) != false) {
|
||||||
|
getPlayerData(client).clientVersion = clientVersion;
|
||||||
|
}
|
||||||
|
|
||||||
let dbConnection = connectToDatabase();
|
let dbConnection = connectToDatabase();
|
||||||
if(dbConnection) {
|
if(dbConnection) {
|
||||||
let safeClientVersion = escapeDatabaseString(dbConnection, clientVersion);
|
let safeClientVersion = escapeDatabaseString(dbConnection, clientVersion);
|
||||||
|
|||||||
Reference in New Issue
Block a user