//TODO: first time setup stuff if properties file not found (download scripts from repository, and basic_settings file that hasn't been made yet)
//the basic settings file should contain basic quicklinks (google, others), and other presets that are deemed important
Display.setAppName("kEllyIRC");
final Display disp = Display.getDefault();
MainWindow window = null;
try {
HTMLLayout h = new HTMLLayout();
h.setTitle(KEllyBot.VERSION+ " Error Log");
h.setLocationInfo(true);
BasicConfigurator.configure(new FileAppender(h, "error_log.html",true));
window = new MainWindow(disp);
window.setBlockOnOpen(true);
window.open();
Display.getCurrent().dispose();
RoomManager.colorset.cleanUp();
} catch (Exception e) {
org.apache.log4j.Logger fLog = org.apache.log4j.Logger.getLogger("log.init");
fLog.error("Initialization failed.", e);