Files
Bubberstation/code/modules/mob/logout.dm
SkyratBot 6f3b151bb8 [MIRROR] Fixes a bunch of harddels that are sourced from player action (#6252)
* Fixes a bunch of harddels that are sourced from player action

* Mirror!

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Funce <funce.973@gmail.com>
2021-06-11 03:13:33 +01:00

19 lines
406 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()
clear_client_in_contents()
..()
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