[READY] Redis PubSub integration + RUSTG Updates (#17266)

This commit is contained in:
AffectedArc07
2022-01-11 15:56:41 +00:00
committed by GitHub
parent 1c8a28425a
commit 0e24c24f52
18 changed files with 292 additions and 3 deletions
+16
View File
@@ -12,6 +12,14 @@
log_adminsay(msg, src)
if(check_rights(R_ADMIN,0))
// Do this up here before it gets sent to everyone & emoji'd
if(SSredis.connected)
var/list/data = list()
data["author"] = usr.ckey
data["source"] = GLOB.configuration.system.instance_id
data["message"] = msg
SSredis.publish("byond.asay.out", json_encode(data))
for(var/client/C in GLOB.admins)
if(R_ADMIN & C.holder.rights)
// Lets see if this admin was pinged in the asay message
@@ -48,6 +56,14 @@
if(!msg)
return
// Do this up here before it gets sent to everyone & emoji'd
if(SSredis.connected)
var/list/data = list()
data["author"] = usr.ckey
data["source"] = GLOB.configuration.system.instance_id
data["message"] = msg
SSredis.publish("byond.msay.out", json_encode(data))
for(var/client/C in GLOB.admins)
if(check_rights(R_ADMIN|R_MOD|R_MENTOR, 0, C.mob))
var/display_name = key