rem: s.parent.eventPump.addEvent(new CEvent ("server", "poll", s, "onPoll")); 
add: this.parent.eventPump.addEvent(new CEvent("server", "poll", this, "onPoll")); 
context: function serv_connect (password){    try    {        this.connection = new CBSConnection();    }    catch (ex)    {        ev = new CEvent ("server", "error", this, "onError");        ev.server = this;        ev.debug = "Couldn't create socket :" + ex;        ev.errorCode = JSIRC_ERR_NO_SOCKET;        ev.exception = ex;        this.parent.eventPump.addEvent (ev);        return false;    }    if (this.connection.connect(this.hostname, this.port, null, true, this.isSecure, null))    {        var ev = new CEvent("server", "connect", this, "onConnect");        if (password)            this.password = password;        ev.server = this;        this.parent.eventPump.addEvent (ev);        this.isConnected = true;        if (jsenv.HAS_NSPR_EVENTQ)            this.connection.startAsyncRead(this);        else            s.parent.eventPump.addEvent(new CEvent ("server", "poll", s,                                                    "onPoll"));    }    return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f0cdc4ddc9fe33b13fd77819eb3045ed5722208e/irc.js/buggy/extensions/irc/js/lib/irc.js