rem: if (pickerRv.reason == PICK_CANCEL) 
add: if (!pickerRv.ok) 
context: function cmdDCCAccept(e){    if (!jsenv.HAS_SERVER_SOCKETS)        return display(MSG_DCC_NOT_POSSIBLE);    if (!client.prefs["dcc.enabled"])        return display(MSG_DCC_NOT_ENABLED);    function accept(c)    {        if (c.TYPE == "IRCDCCChat")        {            if (!c.accept())                return false;            display(getMsg(MSG_DCCCHAT_ACCEPTED, c._getParams()), "DCC-CHAT");            return true;        }        // Accept the request passed in...        var filename = c.filename;        var ext = "*";        var m = filename.match(/...\.([a-z]+)$/i);        if (m)            ext = "*." + m[1];        var pickerRv = pickSaveAs(getMsg(MSG_DCCFILE_SAVE_TO, filename),                                  ["$all", ext], filename);        if (pickerRv.reason == PICK_CANCEL)            return false;        if (!c.accept(pickerRv.file))            return false;        display(getMsg(MSG_DCCFILE_ACCEPTED, c._getParams()), "DCC-FILE");        return true;    };    // If there is no nickname specified, use the "last" item.    // This is the last DCC request that arrvied.    if (!e.nickname && client.dcc.last)    {        if ((new Date() - client.dcc.lastTime) >= 10000)            return accept(client.dcc.last);        return display(MSG_DCC_ERR_ACCEPT_TIME);    }    var o = client.dcc.findByID(e.nickname);    if (o)        // Direct ID --> object request.        return accept(o);    if (e.type)        e.type = [e.type.toLowerCase()];    else        e.type = ["chat", "file"];    // Go ask the DCC code for some matching requets.    var list = client.dcc.getMatches(e.nickname, e.file, e.type,                                     [DCC_DIR_GETTING], [DCC_STATE_REQUESTED]);    // Accept if only one match.    if (list.length == 1)        return accept(list[0]);    // Oops, couldn't figure the user's request out, so give them some help.    display(getMsg(MSG_DCC_PENDING_MATCHES, [list.length]));    display(MSG_DCC_MATCHES_HELP);    return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/19315e5accf0e42f99face2fdac637f39f8ddc84/commands.js/clean/extensions/irc/xul/content/commands.js