summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index b7aae83e..e712dfeb 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -953,6 +953,9 @@ qboolean G_admin_cmd_check( gentity_t *ent, qboolean say )
if( admin_command_permission( ent, cmd ) )
{
+ // flooding say will have already been accounted for in ClientCommand
+ if( !say && G_FloodLimited( ent ) )
+ return qtrue;
trap_SendConsoleCommand( EXEC_APPEND, g_admin_commands[ i ]->exec );
admin_log( ent, cmd, skip );
}
@@ -971,6 +974,9 @@ qboolean G_admin_cmd_check( gentity_t *ent, qboolean say )
if( G_admin_permission( ent, g_admin_cmds[ i ].flag[ 0 ] ) )
{
+ // flooding say will have already been accounted for in ClientCommand
+ if( !say && G_FloodLimited( ent ) )
+ return qtrue;
g_admin_cmds[ i ].handler( ent, skip );
admin_log( ent, cmd, skip );
}