-/*
-====================
-SV_User_f
-
-user <name or userid>
-
-Dump userdata / masterdata for a user
-====================
-*/
-static void SV_User_f(cmd_state_t *cmd) // credit: taken from QuakeWorld
-{
- int uid;
- int i;
-
- if (Cmd_Argc(cmd) != 2)
- {
- Con_Printf ("Usage: user <username / userid>\n");
- return;
- }
-
- uid = atoi(Cmd_Argv(cmd, 1));
-
- for (i = 0;i < cl.maxclients;i++)
- {
- if (!cl.scores[i].name[0])
- continue;
- if (cl.scores[i].qw_userid == uid || !strcasecmp(cl.scores[i].name, Cmd_Argv(cmd, 1)))
- {
- InfoString_Print(cl.scores[i].qw_userinfo);
- return;
- }
- }
- Con_Printf ("User not in server.\n");
-}
-
-/*
-====================
-SV_Users_f
-
-Dump userids for all current players
-====================
-*/
-static void SV_Users_f(cmd_state_t *cmd) // credit: taken from QuakeWorld
-{
- int i;
- int c;
-
- c = 0;
- Con_Printf ("userid frags name\n");
- Con_Printf ("------ ----- ----\n");
- for (i = 0;i < cl.maxclients;i++)
- {
- if (cl.scores[i].name[0])
- {
- Con_Printf ("%6i %4i %s\n", cl.scores[i].qw_userid, cl.scores[i].frags, cl.scores[i].name);
- c++;
- }
- }
-
- Con_Printf ("%i total users\n", c);
-}
-