Fix greeting window malfunction (#7847)

* Fixes

* Log the change

* Remove unused var
This commit is contained in:
Erki
2019-12-29 22:51:03 +01:00
committed by Werner
parent fd8ca07c3e
commit 72abb195bc
6 changed files with 14 additions and 16 deletions
+7 -4
View File
@@ -51,11 +51,14 @@
if(newkey)
client.key = newkey // Try seeting ckey
directory[c.ckey] = c
// If mob exists for that ckey, then BYOND will transfer client to it.
// Init the client and give it a new_player mob.
// Note that modifying the key variable does not invoke client/New() or client/Login() again.
c.InitClient()
c.InitPrefs()
if(istype(c.mob, /mob/abstract/unauthed))
c.mob = new /mob/abstract/new_player() // Else we just treat them as new player
c.InitClient() // And now we shall continue client initilization (permissions and stuff)
c.InitPrefs() // We init prefs just in case mob transfer didn't
c.mob = new /mob/abstract/new_player()
unauthed -= token
/mob/abstract/unauthed/Topic(href, href_list)