TG: - When an admin uses 'adminwho', they will now also get information on whether

the connected admins are observing (they're a ghost), playing (they're a living
mob) or if they have not even entered the game (they're a new_player mob type)
- In addition when an admin uses 'adminwho' they will see if the admin in the
list is AFK or not. You are deemed as AFK if you have been inactive for 300
seconds = 5 minutes.
- A little code standardization for port gens.
Revision: r3730
Author: 	 baloh.matevz
This commit is contained in:
Erthilo
2012-06-07 01:21:26 +01:00
parent ddfdeb339e
commit be0b86bed9
2 changed files with 16 additions and 9 deletions
+9 -1
View File
@@ -31,7 +31,15 @@
for (var/mob/M in world)
if(M && M.client && M.client.holder)
if(usr.client.holder && (usr.client.holder.level != 0))
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""]"
var/afk = 0
if( M.client.inactivity > 3000 ) //3000 deciseconds = 300 seconds = 5 minutes
afk = 1
if(isobserver(M))
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""] - Observing [afk ? "(AFK)" : ""]"
else if(istype(M,/mob/new_player))
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""] - Has not entered [afk ? "(AFK)" : ""]"
else if(istype(M,/mob/living))
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""] - Playing [afk ? "(AFK)" : ""]"
else if(!M.client.stealth && (M.client.holder.level != -3))
usr << "\t[pick(nobles)] [M.client] is a [M.client.holder.rank]"