rem: var msg;  switch (status) { case NS_ERROR_CONNECTION_REFUSED: msg = "Connection to " + this.connection.host + ":" + this.connection.port + " refused."; break;  case NS_ERROR_NET_TIMEOUT: msg = "Connection to " + this.connection.host + ":" + this.connection.port + " timed out."; break;  case NS_ERROR_UNKNOWN_HOST: msg = "Unknown host: " + this.connection.host; break;  default: msg = "Connection to " + this.connection.host + ":" + this.connection.port + " closed with status " + status + "."; break;  }  var ev = new CEvent ("network", "info", this.parent, "onInfo"); ev.msg = msg; this.parent.eventPump.addEvent (ev);  
context: function serv_sockdiscon(status){        this.connection.isConnected = false;    var ev = new CEvent ("server", "disconnect", this, "onDisconnect");    ev.disconnectStatus = status;    this.parent.eventPump.addEvent (ev);        var msg;    switch (status)    {        case NS_ERROR_CONNECTION_REFUSED:            msg = "Connection to " + this.connection.host + ":" +                this.connection.port + " refused.";            break;        case NS_ERROR_NET_TIMEOUT:            msg = "Connection to " + this.connection.host + ":" +                this.connection.port + " timed out.";            break;        case NS_ERROR_UNKNOWN_HOST:            msg = "Unknown host: " + this.connection.host;            break;                    default:            msg = "Connection to " + this.connection.host + ":" +                this.connection.port + " closed with status " + status + ".";            break;                }        var ev = new CEvent ("network", "info", this.parent, "onInfo");    ev.msg = msg;    this.parent.eventPump.addEvent (ev);    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b226fc436530d3430b6efb1f6797a115ad39733f/irc.js/buggy/extensions/irc/js/lib/irc.js