From 349bb9fe9ad26cedb3c5af626e4f22be6903bdde Mon Sep 17 00:00:00 2001 From: Werner Date: Sun, 11 Aug 2019 12:59:01 +0200 Subject: [PATCH] Possible fix for ooc issues with remote-authed clients (#6841) --- code/modules/client/client procs.dm | 1 + code/modules/mob/abstract/unauthed/login.dm | 1 + 2 files changed, 2 insertions(+) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index f5101803e95..592902b5ee9 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -352,6 +352,7 @@ src.authed = FALSE var/mob/abstract/unauthed/m = new() m.client = src + src.InitPrefs() //Init some default prefs return m //Do auth shit else diff --git a/code/modules/mob/abstract/unauthed/login.dm b/code/modules/mob/abstract/unauthed/login.dm index e58f93797b6..49bf88f2312 100644 --- a/code/modules/mob/abstract/unauthed/login.dm +++ b/code/modules/mob/abstract/unauthed/login.dm @@ -29,6 +29,7 @@ show_browser(src, null, "window=auth;") client.verbs += typesof(/client/verb) // Let's return regular client verbs client.authed = TRUE // We declare client as authed now + client.prefs = null //Null them so we can load them from the db again for the correct ckey // Check for bans var/list/ban_data = world.IsBanned(ckey(newkey), c.address, c.computer_id, 1, TRUE) if(ban_data)