[quake3-commits] r2254 - trunk/code/game

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jun 18 11:58:48 EDT 2012


Author: ztm
Date: 2012-06-18 11:58:48 -0400 (Mon, 18 Jun 2012)
New Revision: 2254

Modified:
   trunk/code/game/g_svcmds.c
Log:
Cleaned up game server command usage messages.

Modified: trunk/code/game/g_svcmds.c
===================================================================
--- trunk/code/game/g_svcmds.c	2012-06-14 18:28:58 UTC (rev 2253)
+++ trunk/code/game/g_svcmds.c	2012-06-18 15:58:48 UTC (rev 2254)
@@ -266,7 +266,7 @@
 	char		str[MAX_TOKEN_CHARS];
 
 	if ( trap_Argc() < 2 ) {
-		G_Printf("Usage:  addip <ip-mask>\n");
+		G_Printf("Usage: addip <ip-mask>\n");
 		return;
 	}
 
@@ -288,7 +288,7 @@
 	char		str[MAX_TOKEN_CHARS];
 
 	if ( trap_Argc() < 2 ) {
-		G_Printf("Usage:  sv removeip <ip-mask>\n");
+		G_Printf("Usage: removeip <ip-mask>\n");
 		return;
 	}
 
@@ -423,6 +423,11 @@
 	gclient_t	*cl;
 	char		str[MAX_TOKEN_CHARS];
 
+	if ( trap_Argc() < 3 ) {
+		G_Printf("Usage: forceteam <player> <team>\n");
+		return;
+	}
+
 	// find the player
 	trap_Argv( 1, str, sizeof( str ) );
 	cl = ClientForString( str );



More information about the quake3-commits mailing list