/* now read replies and react. */
try {
/* some status variables. */
- int oldConnectionStatus = 0;
- int connectionStatus = 0;
boolean connected = true;
StringBuilder motd = new StringBuilder();
Set<Nickname> nicks = Sets.newHashSet();
} else if (command.equals("431")) {
eventBus.post(new NoNicknameGivenReceived(this, reply));
} else if (command.equals("433")) {
- if (connectionStatus == 0) {
+ if (!established.get()) {
nickname = nicknameChooser.getNickname();
connectionHandler.sendCommand("NICK", nickname);
} else {