All pastes #180085 Raw Edit

Kid

public text v1 · immutable
#180085 ·published 2006-09-22 20:40 UTC
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);
            }
        }
    }