mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Presistent clients now actually properly track clients between reloads (#91440)
This commit is contained in:
@@ -269,12 +269,9 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
if(GLOB.persistent_clients_by_ckey[ckey])
|
||||
reconnecting = TRUE
|
||||
persistent_client = GLOB.persistent_clients_by_ckey[ckey]
|
||||
persistent_client.byond_build = byond_build
|
||||
persistent_client.byond_version = byond_version
|
||||
else
|
||||
persistent_client = new(ckey)
|
||||
persistent_client.byond_build = byond_build
|
||||
persistent_client.byond_version = byond_version
|
||||
persistent_client.set_client(src)
|
||||
|
||||
if(byond_version >= 516)
|
||||
winset(src, null, list("browser-options" = "find,refresh,byondstorage"))
|
||||
@@ -609,7 +606,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
|
||||
GLOB.clients -= src
|
||||
GLOB.directory -= ckey
|
||||
persistent_client.client = null
|
||||
persistent_client.set_client(null)
|
||||
|
||||
log_access("Logout: [key_name(src)]")
|
||||
GLOB.ahelp_tickets.ClientLogout(src)
|
||||
|
||||
Reference in New Issue
Block a user