mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user