rem: /* connect failed, try again  */ 
add: /* server doesn't use SSL as requested, try next one.  */ 
context: function net_doconnect(e){    var c;        if ("primServ" in this && this.primServ.isConnected)        return true;    var ev;        if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS)    {        ev = new CEvent ("network", "error", this, "onError");        ev.server = this;        ev.debug = "Connection attempts exhausted, giving up.";        ev.errorCode = JSIRC_ERR_EXHAUSTED;        this.eventPump.addEvent (ev);                return false;    }    this.connecting = true; /* connection is considered "made" when serve                             * sends a 001 message (see server.on001) */    var host = this.nextHost++;    if (host >= this.serverList.length)    {        this.nextHost = 1;        host = 0;    }    ev = new CEvent ("network", "startconnect", this, "onStartConnect");    ev.debug = "Connecting to " + this.serverList[host].name + ":" +                   this.serverList[host].port + ", attempt " + this.connectAttempt +               " of " + this.MAX_CONNECT_ATTEMPTS + "...";    ev.host = this.serverList[host].hostname;    ev.port = this.serverList[host].port;    ev.connectAttempt = this.connectAttempt;    this.eventPump.addEvent (ev);    var connected = false;        if (!this.serverList[host].connect())    {        /* connect failed, try again  */        ev = new CEvent ("network", "do-connect", this, "onDoConnect");        this.eventPump.addEvent (ev);    }    return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d84f82bf3e11bd09e70e1036662b0018f8834acc/irc.js/buggy/extensions/irc/js/lib/irc.js