Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alters ASay chat color back to the old MSay color #4151

Merged
merged 17 commits into from
Aug 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
6 changes: 3 additions & 3 deletions code/modules/admin/tabs/admin_tab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@

log_adminpm("ADMIN: [key_name(src)] : [msg]")

var/color = "adminsay"
if(ishost(usr))
color = "headminsay"
var/color = "mod"
if(check_rights(R_PERMISSIONS, show_msg = FALSE))
color = "adminmod"

var/channel = "ADMIN:"
channel = "[admin_holder.rank]:"
Expand Down
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
2 changes: 1 addition & 1 deletion tgui/packages/tgui-say/styles/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $me: #5975da;
$ooc: #1c52f5;
$looc: #e362b4;
$mentor: #b5850d;
$asay: #9611d4;
$asay: #74471b;

////////////////////////////////////////////////
// Subchannel chat colors
Expand Down