mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 07:12:55 +00:00
12 lines
470 B
Plaintext
12 lines
470 B
Plaintext
// Relays messages to asay
|
|
/datum/redis_callback/asay_in
|
|
channel = "byond.asay"
|
|
|
|
/datum/redis_callback/asay_in/on_message(message)
|
|
var/list/data = json_decode(message)
|
|
if(data["source"] == GLOB.configuration.system.instance_id) // Ignore self messages
|
|
return
|
|
for(var/client/C in GLOB.admins)
|
|
if(R_ADMIN & C.holder.rights)
|
|
to_chat(C, "<span class='admin_channel'>ADMIN: <small>[data["author"]]@[data["source"]]</small>: [html_encode(data["message"])]</span>")
|