diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/sv_client.c | 2 | ||||
-rw-r--r-- | src/server/sv_main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/server/sv_client.c b/src/server/sv_client.c index 1448822c..815bf4db 100644 --- a/src/server/sv_client.c +++ b/src/server/sv_client.c @@ -1272,7 +1272,7 @@ void SV_ExecuteClientCommand( client_t *cl, const char *s, qboolean clientOK ) { if (clientOK) { // pass unknown strings to the game - if (!u->name && sv.state == SS_GAME) { + if (!u->name && sv.state == SS_GAME && cl->state == CS_ACTIVE) { VM_Call( gvm, GAME_CLIENT_COMMAND, cl - svs.clients ); } } diff --git a/src/server/sv_main.c b/src/server/sv_main.c index 4363e532..fa009b62 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -701,7 +701,7 @@ static void SVC_RemoteCommand( netadr_t from, msg_t *msg ) { // Prevent using rcon as an amplifier and make dictionary attacks impractical if ( SVC_RateLimitAddress( from, 10, 1000 ) ) { - Com_DPrintf( "SVC_Status: rate limit from %s exceeded, dropping request\n", + Com_DPrintf( "SVC_RemoteCommand: rate limit from %s exceeded, dropping request\n", NET_AdrToString( from ) ); return; } @@ -712,7 +712,7 @@ static void SVC_RemoteCommand( netadr_t from, msg_t *msg ) { // Make DoS via rcon impractical if ( SVC_RateLimit( &bucket, 10, 1000 ) ) { - Com_DPrintf( "SVC_Status: rate limit exceeded, dropping request\n" ); + Com_DPrintf( "SVC_RemoteCommand: rate limit exceeded, dropping request\n" ); return; } |