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.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 2de9296..e6b3132 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -458,7 +458,10 @@ g_admin_cmd_t g_admin_cmds[ ] =
" * will unpause all players, using no argument will unpause game clock",
"(^5name|slot|*^7)"
},
-
+ {"versions", G_admin_versions, "namelog",
+ "Check what versions of Tremulous players are running.",
+ ""
+ },
{
"warn", G_admin_warn, "warn",
"Warn a player to cease or face admin intervention",
@@ -10381,3 +10384,21 @@ qboolean G_admin_give(gentity_t *ent, int skiparg)
return qtrue;
}
+qboolean G_admin_versions(gentity_t *ent, int skiparg)
+{
+ int i;
+
+ ADMBP_begin();
+
+ for (i = 0; i < level.maxclients; i++) {
+ gclient_t *client = level.clients + i;
+
+ if (client->pers.connected == CON_DISCONNECTED)
+ continue;
+
+ ADMBP(va("% 2d '%s'\n", i, client->pers.version));
+ }
+
+ ADMBP_end();
+ return qtrue;
+}