From 86789587091717800571515dc574e362f4572e6d Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Thu, 4 Oct 2012 14:30:41 +0000 Subject: [PATCH] IOQ3 commit 2254 --- reaction/code/game/g_svcmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reaction/code/game/g_svcmds.c b/reaction/code/game/g_svcmds.c index 5e25619a..047c813d 100644 --- a/reaction/code/game/g_svcmds.c +++ b/reaction/code/game/g_svcmds.c @@ -273,7 +273,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; } @@ -295,7 +295,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; } @@ -431,6 +431,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);