for(var/mob/m in world) // you should loop through clients insteadif(m.client) // you should be checking if they are client here m.updatewho() // this loop will cause a delay before the actual client logs