I accidentally broke who for people without +ADMIN who were admins.

Fixed it so it works correctly now, also added comments.
This commit is contained in:
Intigracy
2013-08-31 13:39:47 -07:00
parent 0962cd2679
commit b4a4aeaa39
+12 -6
View File
@@ -8,12 +8,12 @@
var/list/Lines = list()
if(holder)
for(var/client/C in clients)
var/entry = "\t[C.key]"
if(C.holder && C.holder.fakekey)
entry += " <i>(as [C.holder.fakekey])</i>"
entry += " - Playing as [C.mob.real_name]"
if(check_rights(R_ADMIN,0))
if(check_rights(R_ADMIN,0))//If they have +ADMIN, show hidden admins, player IC names and IC status
for(var/client/C in clients)
var/entry = "\t[C.key]"
if(C.holder && C.holder.fakekey)
entry += " <i>(as [C.holder.fakekey])</i>"
entry += " - Playing as [C.mob.real_name]"
switch(C.mob.stat)
if(UNCONSCIOUS)
entry += " - <font color='darkgray'><b>Unconscious</b></font>"
@@ -30,6 +30,12 @@
entry += " - <b><font color='red'>Antagonist</font></b>"
entry += " (<A HREF='?_src_=holder;adminmoreinfo=\ref[C.mob]'>?</A>)"
Lines += entry
else//If they don't have +ADMIN, only show hidden admins
for(var/client/C in clients)
var/entry = "\t[C.key]"
if(C.holder && C.holder.fakekey)
entry += " <i>(as [C.holder.fakekey])</i>"
Lines += entry
else
for(var/client/C in clients)
if(C.holder && C.holder.fakekey)