mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
[READY] Redis PubSub integration + RUSTG Updates (#17266)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user