From 0a94e86dd121ba840672b8a624ecdc0169626d13 Mon Sep 17 00:00:00 2001
From: harryob <55142896+harryob@users.noreply.github.com>
Date: Sat, 12 Aug 2023 22:41:09 +0100
Subject: [PATCH] mods should be able to see this and it should be the correct
color
---
code/datums/redis/callbacks/asay.dm | 4 ++--
code/span_macros.dm | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/code/datums/redis/callbacks/asay.dm b/code/datums/redis/callbacks/asay.dm
index 2ccbca08fb6c..1d994f75b447 100644
--- a/code/datums/redis/callbacks/asay.dm
+++ b/code/datums/redis/callbacks/asay.dm
@@ -7,10 +7,10 @@
if(data["source"] == SSredis.instance_name)
return
- var/msg = SPAN_ADMINSAY("[data["rank"]]: [data["author"]]@[data["source"]]: [strip_html(data["message"])]")
+ var/msg = SPAN_MOD("[data["rank"]]: [data["author"]]@[data["source"]]: [strip_html(data["message"])]")
for(var/client/client in GLOB.admins)
- if(!(R_ADMIN & client.admin_holder.rights))
+ if(!(R_MOD|R_ADMIN & client.admin_holder.rights))
continue
to_chat(client, msg)
diff --git a/code/span_macros.dm b/code/span_macros.dm
index 1eca82ea563f..77e57f2077a0 100644
--- a/code/span_macros.dm
+++ b/code/span_macros.dm
@@ -46,6 +46,7 @@
#define SPAN_ADMIN(X) "[X]"
#define SPAN_ADMINHELP(X) ("" + X + "")
#define SPAN_ADMINSAY(str) ("" + str + "")
+#define SPAN_MOD(str) ("" + str + "")
#define SPAN_MENTORHELP(X) ("" + X + "")
#define SPAN_MENTORSAY(X) ("" + X + "")
#define SPAN_MENTORBODY(X) ("" + X + "")