summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 72c4d8ff..14530bfa 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -659,6 +659,10 @@ void Cmd_Team_f( gentity_t *ent )
char s[ MAX_TOKEN_CHARS ];
qboolean force = G_admin_permission(ent, ADMF_FORCETEAMCHANGE);
+ // stop team join spam
+ if( level.time - ent->client->pers.teamChangeTime < 1000 )
+ return;
+
trap_Argv( 1, s, sizeof( s ) );
if( !strlen( s ) )