rem: var ev;  if ((this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) || ("cancelConnect" in this)) 
add: if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) 
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) ||        ("cancelConnect" in this))    {        if ("reconnectTimer" in this)        {            clearTimeout(this.reconnectTimer);            delete this.reconnectTimer;        }        delete this.cancelConnect;        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;    }    if (this.serverList[host].isSecure || !e.requireSecurity)    {        ev = new CEvent ("network", "startconnect", this, "onStartConnect");        ev.debug = "Connecting to " + this.serverList[host].unicodeName + ":" +                   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.server = this.serverList[host];        ev.connectAttempt = this.connectAttempt;        this.eventPump.addEvent (ev);        if (!this.serverList[host].connect(null))        {            /* connect failed, try again  */            ev = new CEvent ("network", "do-connect", this, "onDoConnect");            ev.requireSecurity = e.requireSecurity;            this.eventPump.addEvent (ev);        }    }    else    {        /* server doesn't use SSL as requested, try next one.  */        ev = new CEvent ("network", "do-connect", this, "onDoConnect");        ev.requireSecurity = e.requireSecurity;        this.eventPump.addEvent (ev);    }    return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4716496448cb36f59a2bcf1b18a813140b2fbd44/irc.js/buggy/extensions/irc/js/lib/irc.js