From 6a094232bc5bd41a5a1c71fedc5b8f63fdf0ff56 Mon Sep 17 00:00:00 2001 From: vuonojenmustaturska Date: Wed, 14 Feb 2018 00:47:58 +0200 Subject: [PATCH] Merge pull request #35642 from MrStonedOne/patch-482 [s]Fixes blacklisted byond builds --- code/modules/client/client_procs.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 77c71823f5..a38a4c5d40 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -4,8 +4,8 @@ #define UPLOAD_LIMIT 1048576 //Restricts client uploads to the server to 1MB //Could probably do with being lower. GLOBAL_LIST_INIT(blacklisted_builds, list( - 1407 = "bug preventing client display overrides from working leads to clients being able to see things/mobs they shouldn't be able to see", - 1408 = "bug preventing client display overrides from working leads to clients being able to see things/mobs they shouldn't be able to see", + "1407" = "bug preventing client display overrides from working leads to clients being able to see things/mobs they shouldn't be able to see", + "1408" = "bug preventing client display overrides from working leads to clients being able to see things/mobs they shouldn't be able to see", )) @@ -235,10 +235,10 @@ GLOBAL_LIST_EMPTY(external_rsc_urls) . = ..() //calls mob.Login() #if DM_VERSION >= 512 - if (byond_build in GLOB.blacklisted_builds) + if (num2text(byond_build) in GLOB.blacklisted_builds) log_access("Failed login: blacklisted byond version") to_chat(src, "Your version of byond is blacklisted.") - to_chat(src, "Byond build [byond_build] ([byond_version].[byond_build]) has been blacklisted for the following reason: [GLOB.blacklisted_builds[byond_build]].") + to_chat(src, "Byond build [byond_build] ([byond_version].[byond_build]) has been blacklisted for the following reason: [GLOB.blacklisted_builds[num2text(byond_build)]].") to_chat(src, "Please download a new version of byond. if [byond_build] is the latest, you can go to http://www.byond.com/download/build/ to download other versions.") if(connecting_admin) to_chat(src, "As an admin, you are being allowed to continue using this version, but please consider changing byond versions")