I would also suggest not sending the "name" command at all. There is no point to change the clients name on the clients computer. Just set the users "info" attribute "name". This will change it in-game only.
So, this will prevent someone going afk (manually of course) and then leaving. Then they come back and they obviously aren't afk but their name will say they are

.
__________________