Files
Bubberstation/code/modules/mob/logout.dm
SkyratBot ec75a270eb [MIRROR] PR about an old ghastly ref issue. (#1630)
* Fixing an old ghastly reference issue. (#54820)

* PR about an old ghastly ref issue.

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2020-11-08 19:30:01 +00:00

22 lines
605 B
Plaintext

/mob/Logout()
SEND_SIGNAL(src, COMSIG_MOB_LOGOUT)
log_message("[key_name(src)] is no longer owning mob [src]([src.type])", LOG_OWNERSHIP)
SStgui.on_logout(src)
unset_machine()
remove_from_player_list()
if(client?.movingmob) //In the case the client was transferred to another mob and not deleted.
client.movingmob.client_mobs_in_contents -= src
UNSETEMPTY(client.movingmob.client_mobs_in_contents)
client.movingmob = null
..()
if(loc)
loc.on_log(FALSE)
if(client)
for(var/foo in client.player_details.post_logout_callbacks)
var/datum/callback/CB = foo
CB.Invoke()
return TRUE