rem: var list = client.dcc.getMatches(e.nickname, e.file, e.type, 
add: var list = client.dcc.getMatches(e.nickname, e.file, e.type, 
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")            return c.accept();                // 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;        c.accept(pickerRv.file);                if (c.TYPE == "CIRCDCCChat")            display(getMsg(MSG_DCCCHAT_ACCEPTED, [c.name, c.remoteIP, c.port]));        else            display(getMsg(MSG_DCCFILE_ACCEPTED, [c.name, c.remoteIP, c.port]));        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);    }        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 requets out, so give them some help.    display(getMsg(MSG_DCC_PENDING_MATCHES, [list.length]));    display(MSG_DCC_MATCHES_HELP);    return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/4cd3ec76af2e3a9922c2d114bf4267b40b388ac2/commands.js/buggy/extensions/irc/xul/content/commands.js