rem: var ev = new CEvent ("network", "error", this, "onError"); 
add: ev = new CEvent ("network", "error", this, "onError"); 
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;    if (attempt > this.MAX_CONNECT_ATTEMPTS)        return false;	    try    {        c = new CBSConnection();    }    catch (ex)    {        dd ("cant make socket.");                var 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))    {        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/87454637ff427e3bf2d900ae40e3e3171df47df7/irc.js/buggy/js/lib/irc.js