NTIRC Communicators (#11658)

This commit is contained in:
Geeves
2021-04-28 16:56:16 +02:00
committed by GitHub
parent 044fb79497
commit 1dd5b25354
7 changed files with 41 additions and 10 deletions
@@ -125,6 +125,8 @@ var/global/ntnrc_uid = 0
/datum/ntnet_conversation/proc/cl_leave(var/datum/computer_file/program/chat_client/Cl)
if(!istype(Cl) || !istype(Cl.my_user) || !(Cl.my_user in users) || !can_interact(Cl) || direct)
return
if(Cl.focused_conv == src)
Cl.focused_conv = null
var/datum/ntnet_message/leave/msg = new(Cl)
Cl.my_user.channels.Remove(src)
users.Remove(Cl.my_user)