mob/verb
Who()
usr << "Players online:"
for(var/mob/M in world)
if(M.key==null||M.client==null||M.key in Admins||M.ckey in Admins||\
M.key in MGMs||M.ckey in MGMs)
return 0
usr << "[M.name] (Key: [M.key])"
usr << "Admins online:"
for(var/mob/M in world)
if(M.key==null||M.client==null||M.key in MGMs||M.ckey in MGMs||\
!Admins.Find("[usr.key]")||!Admins.Find("[usr.ckey]"))
return 0
usr << "[M.name] (Key: [M.key])"
usr << "MGMs online:"
for(var/mob/M in world)
if(M.key==null||M.client==null||M.key in Admins||M.ckey in Admins||\
!MGMs.Find("[usr.ckey]")||!MGMs.Find("[usr.ckey]"))
return 0
usr << "[M.name] (Key: [M.key])"
Problem description:
Is there a reason why this isn't working? It's supposed to only show players/Admins/MGMs in their respective places, but it shows every mob in the world in all three places.