rem: client.munger.entries[".inline-buttons"].enabled = false; 
add: client.munger.getRule(".inline-buttons").enabled = false; 
context: function cmdDCCSend(e){    if (!jsenv.HAS_SERVER_SOCKETS)        return display(MSG_DCC_NOT_POSSIBLE);    if (!client.prefs["dcc.enabled"])        return display(MSG_DCC_NOT_ENABLED);    const DIRSVC_CID = "@mozilla.org/file/directory_service;1";    const nsIProperties = Components.interfaces.nsIProperties;    if (!e.nickname && !e.user)        return display(MSG_DCC_ERR_NOUSER);    // Accept the request passed in...    var file;    if (!e.file)    {        var pickerRv = pickOpen(MSG_DCCFILE_SEND);        if (!pickerRv.ok)            return false;        file = pickerRv.file;    }    else    {        // Wrap in try/catch because nsILocalFile creation throws a freaking        // error if it doesn't get a FULL path.        try        {            file = nsLocalFile(e.file);        }        catch(ex)        {            // Ok, try user's home directory.            var fl = Components.classes[DIRSVC_CID].getService(nsIProperties);            file = fl.get("Home", Components.interfaces.nsILocalFile);            // Another freaking try/catch wrapper.            try            {                // NOTE: This is so pathetic it can't cope with any path                // separators in it, so don't even THINK about lobing a                // relative path at it.                file.append(e.file);                // Wow. We survived.            }            catch (ex)            {                return display(MSG_DCCFILE_ERR_NOTFOUND);            }        }    }    if (!file.exists())        return display(MSG_DCCFILE_ERR_NOTFOUND);    if (!file.isFile())        return display(MSG_DCCFILE_ERR_NOTAFILE);    if (!file.isReadable())        return display(MSG_DCCFILE_ERR_NOTREADABLE);    var user;    if (e.nickname)        user = e.server.addUser(e.nickname);    else        user = e.server.addUser(e.user.unicodeName);    var u = client.dcc.addUser(user);    var c = client.dcc.addFileTransfer(u, client.dcc.getNextPort());    c.request(file);    client.munger.entries[".inline-buttons"].enabled = true;    var cmd = getMsg(MSG_DCC_COMMAND_CANCEL, "dcc-close " + c.id);    display(getMsg(MSG_DCCFILE_SENT_REQUEST, [c.user.unicodeName, c.localIP,                                              c.port, c.filename,                                              getSISize(c.size), cmd]),            "DCC-FILE");    client.munger.entries[".inline-buttons"].enabled = false;    return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/dcccd17e701deb92f8922859871074c0118150f2/commands.js/buggy/extensions/irc/xul/content/commands.js