rem: CIRCNetwork.prototype.onDoConnect = function net_doconnect(e) 
add: function net_doconnect(e) 
context: CIRCNetwork.prototype.onDoConnect = function net_doconnect(e){    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;    if (attempt > this.MAX_CONNECT_ATTEMPTS)        return false;	    var c = new CBSConnection();    if (host >= this.serverList.length)        host = 0;    if (c.connect (this.serverList[host].name, this.serverList[host].port,                   (void 0), true))    {        var ev = new CEvent ("network", "connect", this, "onConnect");        ev.server = this.primServ = new CIRCServer (this, c);        this.eventPump.addEvent (ev);    }    else    { /* connect failed, try again  */        var ev = new CEvent ("network", "do-connect", this, "onDoConnect");        ev.lastHost = host;        ev.attempt = attempt;        this.eventPump.addEvent (ev);    }    return true;}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/06ab51295f3c6825ba59a5f5aa19804e92f7242b/irc.js/buggy/js/lib/irc.js