updated
git-svn-id: svn://anubis/gvsu@222 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
805811d6ec
commit
b1257e8ae4
@ -225,15 +225,22 @@ public class ChatClient
|
|||||||
{
|
{
|
||||||
user = rest.substring(0, idx);
|
user = rest.substring(0, idx);
|
||||||
RegistrationInfo ri = myPServ.lookup(user);
|
RegistrationInfo ri = myPServ.lookup(user);
|
||||||
/* only send a message to available users */
|
if (ri == null)
|
||||||
if (ri.getStatus())
|
|
||||||
{
|
{
|
||||||
String message = rest.substring(idx + 1);
|
System.err.println("Could not find user \"" + user + "\"!");
|
||||||
sendUserMessage(user, message);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
System.out.println(user + " is busy!");
|
/* only send a message to available users */
|
||||||
|
if (ri.getStatus())
|
||||||
|
{
|
||||||
|
String message = rest.substring(idx + 1);
|
||||||
|
sendUserMessage(user, message);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
System.out.println(user + " is busy!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -43,7 +43,7 @@ public class ChordClient
|
|||||||
URL localURL = null;
|
URL localURL = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
localURL = new URL( protocol + "://" + host + ":5353/");
|
localURL = new URL(protocol + "://" + host + ":5353/");
|
||||||
}
|
}
|
||||||
catch (MalformedURLException e)
|
catch (MalformedURLException e)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user