Various TG Chat message sorting fixes (#25229)

* Fixes unsorted emotes, announcements, votes, surgery, prayers, ahelp responses

* Apply suggestions from code review

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

---------

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
S34N
2024-04-29 03:07:25 +01:00
committed by GitHub
parent 4add53d6c1
commit 2e4089dc15
28 changed files with 368 additions and 209 deletions
+2 -2
View File
@@ -28,12 +28,12 @@
C.last_discord_pm_time = 0
SEND_SOUND(C, sound('sound/effects/adminhelp.ogg'))
to_chat(C, message)
to_chat(C, message, , MESSAGE_TYPE_ADMINPM)
for(var/client/A in GLOB.admins)
// GLOB.admins includes anyone with a holder datum (mentors too). This makes sure only admins see ahelps
if(check_rights(R_ADMIN, FALSE, A.mob))
if(A != C)
to_chat(A, amessage)
to_chat(A, amessage, , MESSAGE_TYPE_ADMINPM)
return json_encode(list("success" = "Message Successful"))