Merge pull request #43234 from tgstation/MrStonedOne-patch-4

Exempts current players from the extreme pop cap
This commit is contained in:
ShizCalev
2019-03-21 23:50:36 -04:00
committed by GitHub
+1 -1
View File
@@ -61,7 +61,7 @@
hard_popcap = 0
popcap_value = GLOB.clients.len
if(popcap_value >= extreme_popcap && (!hard_popcap || living_player_count() >= hard_popcap))
if(popcap_value >= extreme_popcap && (!hard_popcap || living_player_count() >= hard_popcap) && !GLOB.joined_player_list.Find(ckey))
log_access("Failed Login: [key] - Population cap reached")
return list("reason"="popcap", "desc"= "\nReason: [CONFIG_GET(string/extreme_popcap_message)]")