From 1e24836c02d3d4602acf8eca978e18316efdd5e2 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Thu, 1 Mar 2018 16:46:21 -0800 Subject: [PATCH] Add support for auto admin when ran in single user mode address is null in single user mode, but we didn't support that because address has been null because of a byond bug, but now that this is a config we don't have to care since its off in production. --- code/modules/client/client_procs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 71dd25e5893..8772e0a9e80 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -183,7 +183,7 @@ GLOBAL_LIST_EMPTY(external_rsc_urls) new /datum/admins(autorank, ckey) if(CONFIG_GET(flag/enable_localhost_rank) && !connecting_admin) var/localhost_addresses = list("127.0.0.1", "::1") - if(address && (address in localhost_addresses)) + if(isnull(address) || (address in localhost_addresses)) var/datum/admin_rank/localhost_rank = new("!localhost!", 65535, 16384, 65535) //+EVERYTHING -DBRANKS *EVERYTHING new /datum/admins(localhost_rank, ckey, 1, 1) //preferences datum - also holds some persistent data for the client (because we may as well keep these datums to a minimum)