}
private void checkForError(MessageStream ms) throws IOException
{
while (ms.hasNext()) {
ServerMessage m = (ServerMessage)ms.next();
if (m instanceof ErrorMessage) {
String expect = sr.getUser().getName() + " is not firewalled";
if (((ErrorMessage)m).message.equals(expect)) {
MessageHandler.unsubscribe(ErrorMessage.TYPE, ms);