rendered paste body private AutoRegister addAutoRegister(Properties ircCfg) {
String initcmd;
try {
initcmd = PropertyHelper.getProperty(ircCfg, "irc.initial.command");
} catch (NullPointerException e) {
initcmd = null;
}
PropertyHelper.getProperty(ircCfg, "irc.nick"),
PropertyHelper.getProperty(ircCfg, "irc.user"),
PropertyHelper.getProperty(ircCfg, "irc.name"));
}
public void connect() throws UnknownHostException, IOException {
if (_autoReconnect == null) {
reload();
} else {
logger.info("connecting to " + _server + ":" + _port);
if (_useSSL == true) {
_autoReconnect.goSSL(_server, _port);
} else {
_autoReconnect.go(_server, _port);
}
}
}