summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index e6b3132..daa01dc 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -10392,11 +10392,26 @@ qboolean G_admin_versions(gentity_t *ent, int skiparg)
for (i = 0; i < level.maxclients; i++) {
gclient_t *client = level.clients + i;
+ char userinfo[ MAX_INFO_STRING ], *p;
if (client->pers.connected == CON_DISCONNECTED)
continue;
- ADMBP(va("% 2d '%s'\n", i, client->pers.version));
+ ADMBP(va("%02i ", i));
+
+ trap_GetUserinfo(i, userinfo, sizeof(userinfo));
+ p = Info_ValueForKey(userinfo, "version");
+
+ if (p[0])
+ ADMBP(va("'%s'\n", p));
+ else {
+ p = Info_ValueForKey(userinfo, "cl_voip");
+
+ if (p[0])
+ ADMBP("probably GPP or newer\n");
+ else
+ ADMBP("probably stock 1.1\n");
+ }
}
ADMBP_end();