while (!connected) {
            Thread.sleep(60 * 1000L); // 1 minute
            try {
                PircBotX newBot = new RhqIrcBot(this);
                newBot.connect(this.server);
                newBot.joinChannel(this.channel);
                connected = true;
            } catch (Exception e) {
                System.err.println("Failed to reconnect to " + disconnectEvent.getBot().getServer() + " IRC server: "
                    + e);