Originally Posted by
christuart
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.