Fix admin PMs not working from discord (#25604)

This commit is contained in:
AffectedArc07
2024-05-25 02:43:32 +01:00
committed by GitHub
parent 2e01f3591d
commit 67a8a340e6

View File

@@ -28,12 +28,12 @@
C.last_discord_pm_time = 0
SEND_SOUND(C, sound('sound/effects/adminhelp.ogg'))
to_chat(C, message, , MESSAGE_TYPE_ADMINPM)
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, , MESSAGE_TYPE_ADMINPM)
to_chat(A, amessage, MESSAGE_TYPE_ADMINPM)
return json_encode(list("success" = "Message Successful"))