MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SV_DumpUser_f

Function SV_DumpUser_f

code/server/sv_ccmds.cpp:431–454  ·  view source on GitHub ↗

=========== SV_DumpUser_f Examine all a users info strings FIXME: move to game =========== */

Source from the content-addressed store, hash-verified

429===========
430*/
431static void SV_DumpUser_f( void ) {
432 client_t *cl;
433
434 // make sure server is running
435 if ( !com_sv_running->integer ) {
436 Com_Printf( "Server is not running.\n" );
437 return;
438 }
439
440 if ( Cmd_Argc() != 1 ) {
441 Com_Printf ("Usage: info\n");
442 return;
443 }
444
445 cl = &svs.clients[0];
446 if ( !cl->state ) {
447 Com_Printf("Client is not active\n");
448 return;
449 }
450
451 Com_Printf( "userinfo\n" );
452 Com_Printf( "--------\n" );
453 Info_Print( cl->userinfo );
454}
455
456//===========================================================
457

Callers

nothing calls this directly

Calls 3

Com_PrintfFunction · 0.50
Cmd_ArgcFunction · 0.50
Info_PrintFunction · 0.50

Tested by

no test coverage detected