[Scummvm-git-logs] scummvm-sites multiplayer -> 1a9b05bc8418d2cd8c3c09603d9001f79d8542f1

shkupfer noreply at scummvm.org
Tue Apr 11 02:24:36 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-sites' repo located at https://github.com/scummvm/scummvm-sites .

Summary:
1a9b05bc84 MULTIPLAYER: Add competitive_mods to login log


Commit: 1a9b05bc8418d2cd8c3c09603d9001f79d8542f1
    https://github.com/scummvm/scummvm-sites/commit/1a9b05bc8418d2cd8c3c09603d9001f79d8542f1
Author: shkupfer (shkupfer at ncsu.edu)
Date: 2023-04-10T22:24:31-04:00

Commit Message:
MULTIPLAYER: Add competitive_mods to login log

Changed paths:
    lobby/net/DatabaseMessages.js


diff --git a/lobby/net/DatabaseMessages.js b/lobby/net/DatabaseMessages.js
index 5c140ec..0d6faa9 100644
--- a/lobby/net/DatabaseMessages.js
+++ b/lobby/net/DatabaseMessages.js
@@ -32,6 +32,7 @@ server.handleMessage("login", async (client, args) => {
     const password = args.pass;
     const game = args.game;
     const version = args.version;
+    const competitive_mods = args.competitive_mods;
 
     if (username === undefined) {
         client.kick("Missing username parameter!");
@@ -56,7 +57,7 @@ server.handleMessage("login", async (client, args) => {
     client.version = version;
 
     const user = await database.getUser(username, password, game);
-    logEvent('login', client, args.version, {'user': user.id, 'username': user.user, 'game': game});
+    logEvent('login', client, args.version, {'user': user.id, 'username': user.user, 'game': game, 'competitive_mods': competitive_mods});
     if (user.error) {
         client.send("login_resp", {error_code: user.error,
                                    id: 0,




More information about the Scummvm-git-logs mailing list