mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-31 12:41:46 +00:00
* initial stuff (broken) * initial stuff (works) * fix most other things * fix thinking indicator * file name moment * contra review * better logs * snowball feedback * expanded drag handles * Update code/modules/tgui_input/say_modal/tgui_say_modal.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * Update code/modules/tgui_input/say_modal/tgui_say_modal.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * Drag handle * fix missing colours * TGUI rebuild (im clever) * Make msay useable by admins again (i hope) * fixed blacklist channel leaks due to lack of user eyes * clear old TGUIsay macros on keybind update * TGUI say tweaks * Update code/modules/tgui_input/say_modal/tgui_say_modal.dm * whisper is now a channel * remove placeholder, shorten width * tidies prefs, fix lightmode, refactor typing/thinking indicators * clarify more prefs * TG Typing Indicators and increace layer * modifiers? * makes the TGUI say macros serverside * add checks for muted stuff * dgamer review * fix talk and type issue * Update code/datums/keybindings/communication_keybinds.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * review and binary stuff * Removes force say from TGUI say * updated * Apply suggestions from code review Co-authored-by: Aylong <69762909+AyIong@users.noreply.github.com> * remove verb * le rebuild * better behaviour on illegal entries --------- Co-authored-by: Aylong <alexanderkitsa@gmail.com> Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Co-authored-by: GDN <Roanrichards1@Gmail.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: Aylong <69762909+AyIong@users.noreply.github.com>
26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
/mob/Logout()
|
|
set_typing_indicator(FALSE)
|
|
SStgui.on_logout(src) // Cleanup any TGUIs the user has open
|
|
unset_machine()
|
|
GLOB.player_list -= src
|
|
log_access_out(src)
|
|
create_attack_log("<font color='red'>Logged out at [atom_loc_line(get_turf(src))]</font>")
|
|
create_log(MISC_LOG, "Logged out")
|
|
// `holder` is nil'd out by now, so we check the `admin_datums` array directly
|
|
// Only report this stuff if we are currently playing.
|
|
if(GLOB.admin_datums[ckey] && SSticker.current_state == GAME_STATE_PLAYING)
|
|
var/datum/admins/temp_admin = GLOB.admin_datums[ckey]
|
|
if(temp_admin.rights & R_BAN)
|
|
message_admins("Admin logout: [key_name_admin(src)]")
|
|
var/list/admincounter = staff_countup(R_BAN)
|
|
if(admincounter[1] == 0) // No active admins
|
|
GLOB.discord_manager.send2discord_simple(DISCORD_WEBHOOK_ADMIN, "[key_name(src)] logged out - 0 active admins, [admincounter[2]] non-admin staff, [admincounter[3]] inactive staff.")
|
|
else if(temp_admin.rights & R_MENTOR)
|
|
var/list/mentorcounter = staff_countup(R_MENTOR)
|
|
if(mentorcounter[1] == 0) // No active mentors
|
|
GLOB.discord_manager.send2discord_simple(DISCORD_WEBHOOK_MENTOR, "[key_name(src)] logged out - 0 active mentors, [mentorcounter[2]] non-mentor staff, [mentorcounter[3]] inactive mentors.")
|
|
|
|
..()
|
|
update_morgue()
|
|
return 1
|