=========== SV_DumpUser_f Examine all a users info strings FIXME: move to game =========== */
| 429 | =========== |
| 430 | */ |
| 431 | static 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 |
nothing calls this directly
no test coverage detected