From 3e9b15570fc2011e3838141823a3c50d9b21ea54 Mon Sep 17 00:00:00 2001
From: CHOMPStation2StaffMirrorBot
<94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com>
Date: Sun, 17 Nov 2024 14:45:44 -0700
Subject: [PATCH] [MIRROR] Restricted aghosting and detailed advanced who to
staff (#9497)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
---
code/modules/client/verbs/advanced_who.dm | 2 +-
code/modules/mob/dead/observer/observer.dm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/code/modules/client/verbs/advanced_who.dm b/code/modules/client/verbs/advanced_who.dm
index 1fa132b23a..e2b6fc46e0 100644
--- a/code/modules/client/verbs/advanced_who.dm
+++ b/code/modules/client/verbs/advanced_who.dm
@@ -8,7 +8,7 @@
var/list/Lines = list()
- if(holder)
+ if(check_rights(R_ADMIN|R_SERVER|R_MOD,FALSE,src))
for(var/client/C in GLOB.clients)
var/entry = "
| [C.key]"
if(C.holder && C.holder.fakekey)
diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm
index 16aac8872d..bb3b0d0661 100644
--- a/code/modules/mob/dead/observer/observer.dm
+++ b/code/modules/mob/dead/observer/observer.dm
@@ -223,7 +223,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
announce_ghost_joinleave(ghostize(1))
else
var/response
- if(src.client && src.client.holder)
+ if(check_rights(R_ADMIN|R_SERVER|R_MOD,FALSE,src)) //No need to sanity check for client and holder here as that is part of check_rights
response = tgui_alert(src, "You have the ability to Admin-Ghost. The regular Ghost verb will announce your presence to dead chat. Both variants will allow you to return to your body using 'aghost'.\n\nWhat do you wish to do?", "Are you sure you want to ghost?", list("Admin Ghost", "Ghost", "Stay in body"))
if(response == "Admin Ghost")
if(!src.client)
|