summaryrefslogtreecommitdiff
path: root/source/sv_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sv_user.c')
-rw-r--r--source/sv_user.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/sv_user.c b/source/sv_user.c
index 4dece07..21c4805 100644
--- a/source/sv_user.c
+++ b/source/sv_user.c
@@ -1241,10 +1241,12 @@ void SV_ExecuteClientMessage( client_t *client ) {
client->name, Q_FormatString( buffer ) );
}
- // malicious users may try using too many string commands
- if( stringCmdCount == MAX_PACKET_STRINGCMDS ) {
- Com_DPrintf( "Too many stringcmds from %s\n", client->name );
- break;
+ if( !NET_IsLocalAddress( &client->netchan->remote_address ) ) {
+ // malicious users may try using too many string commands
+ if( stringCmdCount == MAX_PACKET_STRINGCMDS ) {
+ Com_DPrintf( "Too many stringcmds from %s\n", client->name );
+ break;
+ }
}
SV_ExecuteUserCommand( buffer );
stringCmdCount++;