Fixes a problem with advanced_who

Advanced who was doing (Testname represents Ckey, StealthTest represents stealth Ckey)
"Testname" for admins when unstealthed, which was good, but it was doing
"TestnameStealthTest" when admins were stealthed.

This PR makes it start off as "Testname", then checks to see if they are stealthed. If so, it becomes "StealthTest," then adds in all the additional info (If they are observing, in lobby, or playing.)
This commit is contained in:
Cameron653
2016-10-17 14:35:25 -04:00
committed by GitHub
parent e01fe44587
commit c535137bae

View File

@@ -56,7 +56,7 @@
if(C.holder && C.holder.fakekey)
var/entry = "\t[C.key]"
var/mob/observer/dead/O = C.mob
entry += C.holder.fakekey
entry = C.holder.fakekey
if(isobserver(O))
entry += " - <font color='gray'>Observing</font>"
else if(istype(O,/mob/new_player))