rem: if (attempt > this.MAX_CONNECT_ATTEMPTS) return false; 
add: if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) { ev = new CEvent ("network", "info", this, "onInfo"); ev.msg = "Connection attempts exhausted, giving up."; this.eventPump.addEvent (ev); return false; } 
context: function net_doconnect(e){    var c;        if ((this.primServ) && (this.primServ.connection.isConnected))        return true;    var attempt = (typeof e.attempt == "undefined") ? 1 : e.attempt + 1;    var host = (typeof e.lastHost == "undefined") ? 0 : e.lastHost + 1;    var ev;    if (attempt > this.MAX_CONNECT_ATTEMPTS)        return false;	    try    {        c = new CBSConnection();    }    catch (ex)    {        dd ("cant make socket.");                ev = new CEvent ("network", "error", this, "onError");        ev.meat = "Unable to create socket: " + ex;        this.eventPump.addEvent (ev);        return false;    }    if (host >= this.serverList.length)        host = 0;    if (c.connect (this.serverList[host].name, this.serverList[host].port,                   (void 0), true))    {        ev = new CEvent ("network", "connect", this, "onConnect");        ev.server = this.primServ = new CIRCServer (this, c);        this.eventPump.addEvent (ev);    }    else    { /* connect failed, try again  */        ev = new CEvent ("network", "do-connect", this, "onDoConnect");        ev.lastHost = host;        ev.attempt = attempt;        this.eventPump.addEvent (ev);    }    return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ee3e25cd866563b5083f4eb42f44f9b25afaeeda/irc.js/buggy/extensions/irc/js/lib/irc.js