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:
parent
7fca0357b6
commit
f4e7a923e5
@ -213,12 +213,17 @@ public class ChatClient
|
||||
RegistrationInfo[] ris = myPServ.listRegisteredUsers();
|
||||
for (RegistrationInfo ri : ris)
|
||||
{
|
||||
/* don't send a message to ourselves */
|
||||
if (!ri.getUserName().equals(myUserName))
|
||||
{
|
||||
/* send message if user available */
|
||||
if (ri.getStatus())
|
||||
{
|
||||
sendUserMessage(ri.getUserName(), rest);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (command.equals("busy"))
|
||||
{
|
||||
if (myRegistrationInfo.getStatus())
|
||||
|
Loading…
x
Reference in New Issue
Block a user