From a17dafc5e75ae9a984bbe0de4cfd770e41e8131e Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 18 Jun 2012 15:58:48 +0000 Subject: [PATCH] Cleaned up game server command usage messages. --- code/game/g_svcmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/game/g_svcmds.c b/code/game/g_svcmds.c index 06c5063d..b251ab35 100644 --- a/code/game/g_svcmds.c +++ b/code/game/g_svcmds.c @@ -266,7 +266,7 @@ void Svcmd_AddIP_f (void) char str[MAX_TOKEN_CHARS]; if ( trap_Argc() < 2 ) { - G_Printf("Usage: addip \n"); + G_Printf("Usage: addip \n"); return; } @@ -288,7 +288,7 @@ void Svcmd_RemoveIP_f (void) char str[MAX_TOKEN_CHARS]; if ( trap_Argc() < 2 ) { - G_Printf("Usage: sv removeip \n"); + G_Printf("Usage: removeip \n"); return; } @@ -423,6 +423,11 @@ void Svcmd_ForceTeam_f( void ) { gclient_t *cl; char str[MAX_TOKEN_CHARS]; + if ( trap_Argc() < 3 ) { + G_Printf("Usage: forceteam \n"); + return; + } + // find the player trap_Argv( 1, str, sizeof( str ) ); cl = ClientForString( str );