rem: client.quit(client.userAgent); 
add: client.quit(); 
context: function onClose(){    if ("userClose" in client && client.userClose)        return true;    if (!("getConnectionCount" in client) ||        client.getConnectionCount() == 0)    {        /* if we're not connected to anything, just close the window */        return true;    }    /* otherwise, try to close out gracefully */    var close = true;    if (client.prefs["warnOnClose"])    {        const buttons = ["!yes", "!no"];        var checkState = { value: true };        var rv = confirmEx(MSG_CONFIRM_QUIT, buttons, 0, MSG_WARN_ON_EXIT,                           checkState);        close = (rv == 0);        client.prefs["warnOnClose"] = checkState.value;    }    if (close)    {        client.userClose = true;        display(MSG_CLOSING);        client.quit(client.userAgent);    }    return false;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/03aa76e58d8ce9907fb6100db0150894132ed728/handlers.js/buggy/extensions/irc/xul/content/handlers.js