Merge pull request #11420 from kappa-sama/patch-18

removes limbo courtesy of bhijn
This commit is contained in:
Ghom
2020-03-11 13:17:08 +01:00
committed by GitHub

View File

@@ -9,9 +9,9 @@
/world/IsBanned(key,address,computer_id,type,real_bans_only=FALSE)
var/static/key_cache = list()
if(!real_bans_only)
if(key_cache[key])
if(key_cache[key] >= REALTIMEOFDAY)
return list("reason"="concurrent connection attempts", "desc"="You are attempting to connect too fast. Try again.")
key_cache[key] = 1
key_cache[key] = REALTIMEOFDAY+10 //this shouldn't runtime, but if it does, expiry attempts will cover it to ensure genuine connection attemps wont get trapped in limbo
if (!key || !address || !computer_id)
if(real_bans_only)