public static void main(String[] args) { b.setVerbose(true); try { loadSettings(); } catch (Exception e) { System.err.println("Failed to process config file: " + e.getMessage()); System.exit(0); } try { b.setName(nick); b.connect(server); for (String s : channels) b.joinChannel(s); } catch (Exception e) { System.err.println("Could not connect to server: " + e.getMessage()); System.exit(0); } }