View Single Post
  #8 (permalink)  
Old 08-31-2008, 05:32 PM
ProjectKaiser's Avatar
ProjectKaiser ProjectKaiser is offline
Member
 
Join Date: Aug 2008
Location: Saint-Petersburg, Russia
Posts: 47
ProjectKaiser is on a distinguished road
Quote:
Originally Posted by christuart View Post
Next I type in "/#quit". This should cause the server to close my connection and make the client close (I think). However, instead the server doesn't notice that this is the quit command and it sends to all users "<chris> /#quit".
Ok, this is much more clear. I think that you send "/#quit\n" but not "/#quit". Therefore equalsIgnoreCase("/#quit") never gets true.

Usage of equalsIgnoreCase("/#quit\n") might do the job.

Last edited by ProjectKaiser : 08-31-2008 at 06:09 PM.
Reply With Quote