Fixes and improves TGS revision info (#15283)

* Initial Commit

* Fixes this

* Try this

* Apply suggestions from code review

Co-authored-by: Jordan Brown <Cyberboss@users.noreply.github.com>

Co-authored-by: Jordan Brown <Cyberboss@users.noreply.github.com>
This commit is contained in:
AffectedArc07
2021-02-04 11:07:20 -05:00
committed by GitHub
co-authored by Jordan Brown
parent 6d202aab6b
commit 95e4bf87c7
3 changed files with 65 additions and 4 deletions
+5
View File
@@ -391,8 +391,13 @@
GLOB.panic_bunker_enabled = FALSE
message_admins("Panic bunker has been automatically disabled due to playercount dropping below [threshold]")
// Tell clients about active testmerges
if(world.TgsAvailable() && length(GLOB.revision_info.testmerges))
to_chat(src, GLOB.revision_info.get_testmerge_chatmessage(TRUE))
INVOKE_ASYNC(src, .proc/cid_count_check)
/client/proc/is_connecting_from_localhost()
var/localhost_addresses = list("127.0.0.1", "::1") // Adresses
if(!isnull(address) && (address in localhost_addresses))