rem: if (client.userClose && client.getConnectionCount() == 0) 
add: if ("userClose" in client && client.userClose && client.getConnectionCount() == 0) 
context: function my_netdisconnect (e){    var connection = e.server.connection;        if (typeof e.disconnectStatus != "undefined")    {        switch (e.disconnectStatus)        {            case 0:                msg = getMsg("my_netdisconnectConnectionClosed", [this.name,                             connection.host, connection.port]);            case NS_ERROR_CONNECTION_REFUSED:                msg = getMsg("my_netdisconnectConnectionRefused", [this.name,                             connection.host, connection.port]);                break;            case NS_ERROR_NET_TIMEOUT:                msg = getMsg("my_netdisconnectConnectionTimeout", [this.name,                             connection.host, connection.port]);                break;            case NS_ERROR_UNKNOWN_HOST:                msg = getMsg("my_netdisconnectUnknownHost",                             connection.host);                break;                        default:                msg = getMsg("my_netdisconnectConnectionClosedStatus",                             [this.name, connection.host, connection.port]);                break;        }        }    else    {        msg = getMsg("my_neterrorConnectionClosed", [this.name,                     connection.host, connection.port]);    }        this.display (msg, "ERROR");    this.connecting = false;    updateTitle();    if (client.userClose && client.getConnectionCount() == 0)        window.close();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0d1a83beabf85d1bbf715013aa931f56c2bfb948/handlers.js/buggy/extensions/irc/xul/content/handlers.js