Files
Paradise/code/modules/redis/callbacks/dev_callback.dm
kyunkyunkyun b0463d3c83 Convert most spans to defines (#31080)
* spanish?

* aaaagain

* keep maptext

* Update robot_items.dm

* Update span_defines.dm

* compiles

* Update silicon_mob.dm

* compile
2025-12-13 23:55:48 +00:00

12 lines
489 B
Plaintext

// Relays messages to developer
/datum/redis_callback/developer_in
channel = "byond.devsay"
/datum/redis_callback/developer_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(check_rights(R_ADMIN|R_DEV_TEAM, FALSE, C.mob))
to_chat(C, SPAN_DEV_CHANNEL("DEV: <small>[data["author"]]@[data["source"]]</small>: [html_encode(data["message"])]"))