Skip to content

Commit

Permalink
mods should be able to see this and it should be the correct color
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Aug 12, 2023
1 parent 2ce6399 commit 0a94e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/datums/redis/callbacks/asay.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
if(data["source"] == SSredis.instance_name)
return

var/msg = SPAN_ADMINSAY("<span class='prefix'>[data["rank"]]:</span> <EM>[data["author"]]@[data["source"]]</EM>: <span class='message'>[strip_html(data["message"])]</span>")
var/msg = SPAN_MOD("<span class='prefix'>[data["rank"]]:</span> <EM>[data["author"]]@[data["source"]]</EM>: <span class='message'>[strip_html(data["message"])]</span>")

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)
1 change: 1 addition & 0 deletions code/span_macros.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#define SPAN_ADMIN(X) "<span class='admin'>[X]</span>"
#define SPAN_ADMINHELP(X) ("<span class='adminhelp'>" + X + "</span>")
#define SPAN_ADMINSAY(str) ("<span class='adminsay'>" + str + "</span>")
#define SPAN_MOD(str) ("<span class='mod'>" + str + "</span>")
#define SPAN_MENTORHELP(X) ("<span class='mentorhelp'>" + X + "</span>")
#define SPAN_MENTORSAY(X) ("<span class='mentorsay'>" + X + "</span>")
#define SPAN_MENTORBODY(X) ("<span class='mentorbody'>" + X + "</span>")
Expand Down

0 comments on commit 0a94e86

Please sign in to comment.