do not broadcast to users who are busy

git-svn-id: svn://anubis/gvsu@150 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-09-18 01:08:16 +00:00
parent 7fca0357b6
commit f4e7a923e5

View File

@ -213,9 +213,14 @@ public class ChatClient
RegistrationInfo[] ris = myPServ.listRegisteredUsers();
for (RegistrationInfo ri : ris)
{
/* don't send a message to ourselves */
if (!ri.getUserName().equals(myUserName))
{
sendUserMessage(ri.getUserName(), rest);
/* send message if user available */
if (ri.getStatus())
{
sendUserMessage(ri.getUserName(), rest);
}
}
}
}