mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-17 10:57:19 +01:00
Fixed the message server PDA messages logging (#19668)
Fixed the message server PDA messages logging. Fixed the message monitoring console for the aforementioned use. Fixed a runtime for AI distance check on trying to read papers. Created a preset for the message server so it's autolinked on the horizon. Fixes #11701 (For the Message Logs part)
This commit is contained in:
@@ -107,6 +107,26 @@ var/global/ntnrc_uid = 0
|
||||
var/datum/ntnet_message/message/msg = new(Cl)
|
||||
msg.message = message
|
||||
msg.user = user
|
||||
|
||||
//[signal.data["name"]] ([signal.data["job"]])", signal.data["message"], signal.data["photo"]
|
||||
var/list/signal_data = list()
|
||||
signal_data["name"] = user.GetVoice()
|
||||
signal_data["job"] = user.job
|
||||
signal_data["message"] = message
|
||||
signal_data["photo"] = null
|
||||
|
||||
// If the channel has a title, use the title, otherwise add the users
|
||||
if(title != initial(title))
|
||||
signal_data["targets"] = list("[title] (Channel)")
|
||||
else
|
||||
signal_data["targets"] = list()
|
||||
for(var/datum/ntnet_user/U in users)
|
||||
if(U != Cl.my_user)
|
||||
signal_data["targets"] += U.username
|
||||
|
||||
var/datum/signal/subspace/pda/signal = new(Cl.computer, signal_data)
|
||||
signal.send_to_receivers()
|
||||
|
||||
process_message(msg)
|
||||
|
||||
/datum/ntnet_conversation/proc/cl_join(var/datum/computer_file/program/chat_client/Cl)
|
||||
|
||||
Reference in New Issue
Block a user