summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index f4eeeb8e..7b0751c0 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1050,7 +1050,14 @@ void Cmd_CallVote_f( gentity_t *ent )
!Q_stricmp( arg1, "unmute" ) )
{
int clientNums[ MAX_CLIENTS ] = { -1 };
-
+
+ if( !arg2[ 0 ] )
+ {
+ trap_SendServerCommand( ent-g_entities,
+ "print \"callvote: no target\n\"" );
+ return;
+ }
+
if( G_ClientNumbersFromString( arg2, clientNums ) == 1 )
{
// there was only one partial name match
@@ -1283,7 +1290,14 @@ void Cmd_CallTeamVote_f( gentity_t *ent )
!Q_stricmp( arg1, "allowbuild" ) )
{
int clientNums[ MAX_CLIENTS ] = { -1 };
-
+
+ if( !arg2[ 0 ] )
+ {
+ trap_SendServerCommand( ent-g_entities,
+ "print \"callvote: no target\n\"" );
+ return;
+ }
+
if( G_ClientNumbersFromString( arg2, clientNums ) == 1 )
{
// there was only one partial name match