rem: var reconnectFn = function(server) { delete server.parent.reconnectTimer; var ev = new CEvent("network", "do-connect", server.parent, "onDoConnect"); server.parent.eventPump.addEvent(ev); }; setTimeout(stateChangeFn, 0, this.parent, NET_WAITING); this.parent.reconnectTimer = setTimeout(reconnectFn, 15000, this); 
add: setTimeout(delayedConnectFn, 0, this.parent); 
context: function serv_disconnect(e){    function stateChangeFn(network, state) {        network.state = state;    };    if ((this.parent.state == NET_CONNECTING) ||        /* fell off while connecting, try again */        (this.parent.primServ == this) && (this.parent.state == NET_ONLINE) &&        (!("quitting" in this) && this.parent.stayingPower))    { /* fell off primary server, reconnect to any host in the serverList */        var reconnectFn = function(server) {            delete server.parent.reconnectTimer;            var ev = new CEvent("network", "do-connect", server.parent,                                "onDoConnect");            server.parent.eventPump.addEvent(ev);        };        setTimeout(stateChangeFn, 0, this.parent, NET_WAITING);        this.parent.reconnectTimer = setTimeout(reconnectFn, 15000, this);    }    else    {        setTimeout(stateChangeFn, 0, this.parent, NET_OFFLINE);    }    e.server = this;    e.set = "network";    e.destObject = this.parent;    e.quitting = this.quitting;    for (var c in this.channels)    {        this.channels[c].users = new Object();        this.channels[c].active = false;    }    this.connection = null;    this.isConnected = false;    delete this.quitting;    return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d1e544168badeeb25b46a5d1a1da2d29c388481d/irc.js/buggy/extensions/irc/js/lib/irc.js