diff options
author | Andrey Nazarov <skuller@skuller.net> | 2010-09-07 20:36:12 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2010-09-07 20:36:12 +0000 |
commit | 043c6070217408799a50dbde0ee41f29d3017daf (patch) | |
tree | 2fa82e7917a00ab13a873021d119754638b71ddc /source/sv_init.c | |
parent | 73872fb2d18bf49605b1969ef304602547c247c8 (diff) |
Allow extended ‘<limit>[/<period>[sec|min|hour]]’ syntax for ‘sv_status_limit’ (default period is one second).
Split ‘sv_badauth_time’ cvar into ‘sv_auth_limit’ and ‘sv_rcon_limit’, with syntax identical to ‘sv_status_limit’.
Reset rate limiting counters at server shutdown to make sure rcon rate limiting continues to work.
Diffstat (limited to 'source/sv_init.c')
-rw-r--r-- | source/sv_init.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/sv_init.c b/source/sv_init.c index 3f11d6a..cd0e015 100644 --- a/source/sv_init.c +++ b/source/sv_init.c @@ -294,11 +294,6 @@ void SV_InitGame( qboolean ismvd ) { #endif SV_InitGameProgs(); - // init rate limits - SV_RateInit( &svs.ratelimit_status, sv_status_limit->integer, 1000 ); - SV_RateInit( &svs.ratelimit_badpass, 1, sv_badauth_time->value * 1000 ); - SV_RateInit( &svs.ratelimit_badrcon, 1, sv_badauth_time->value * 1000 ); - // send heartbeat very soon svs.last_heartbeat = -(HEARTBEAT_SECONDS-5)*1000; |