Fixes cross comms

This commit is contained in:
Jordan Brown
2017-12-17 16:05:24 -05:00
committed by CitadelStationBot
parent 220e1cd8cf
commit a834287d65
3 changed files with 21 additions and 5 deletions
+3 -3
View File
@@ -75,14 +75,14 @@
C.AnnouncePR(final_composed)
/datum/world_topic/ahelp_relay
keyword = "ahelp_relay"
keyword = "Ahelp"
require_comms_key = TRUE
/datum/world_topic/ahelp_relay/Run(list/input)
relay_msg_admins("<span class='adminnotice'><b><font color=red>HELP: </font> [input["source"]] [input["message_sender"]]: [input["message"]]</b></span>")
/datum/world_topic/comms_console
keyword = "comms_console"
keyword = "Comms_Console"
require_comms_key = TRUE
/datum/world_topic/comms_console/Run(list/input)
@@ -91,7 +91,7 @@
CM.overrideCooldown()
/datum/world_topic/news_report
keyword = "news_report"
keyword = "News_Report"
require_comms_key = TRUE
/datum/world_topic/news_report/Run(list/input)
@@ -136,7 +136,8 @@
to_chat(usr, "<span class='warning'>Arrays recycling. Please stand by.</span>")
playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
return
var/input = stripped_multiline_input(usr, "Please choose a message to transmit to an allied station. Please be aware that this process is very expensive, and abuse will lead to... termination.", "Send a message to an allied station.", "")
var/input = stripped_multiline_input(usr, "Please choose a message to transmit to allied stations. Please be aware that this process is very expensive, and abuse will lead to... termination.", "Send a message to an allied station.", "")
if(!input || !(usr in view(1,src)))
return
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
@@ -739,4 +740,4 @@
if(content)
content = new_content
if(new_possible_answers)
possible_answers = new_possible_answers
possible_answers = new_possible_answers
+15
View File
@@ -615,6 +615,7 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
/proc/send2otherserver(source,msg,type = "Ahelp")
var/comms_key = CONFIG_GET(string/comms_key)
<<<<<<< HEAD
if(comms_key)
var/list/message = list()
message["message_sender"] = source
@@ -624,6 +625,20 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
message["crossmessage"] = type
world.Export("[CONFIG_GET(string/cross_server_address)]?[list2params(message)]")
=======
if(!comms_key)
return
var/list/message = list()
message["message_sender"] = source
message["message"] = msg
message["source"] = "([CONFIG_GET(string/cross_comms_name)])"
message["key"] = comms_key
message += type
var/list/servers = CONFIG_GET(keyed_string_list/cross_server)
for(var/I in servers)
world.Export("[servers[I]]?[list2params(message)]")
>>>>>>> 8e0caa6... Fixes cross comms (#33601)
/proc/ircadminwho()