mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-01 05:02:33 +00:00
Fix admin PMs not working from discord (#25604)
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, , 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"))
|
||||
|
||||
Reference in New Issue
Block a user