rem: display(getMsg(MSG_DCCLIST_SUMMARY, [counts.pending, counts.connected, 
add: display(getMsg(MSG_DCCLIST_SUMMARY, [counts.pending, counts.connected, 
context: function cmdDCCList(e) {    if (!jsenv.HAS_SERVER_SOCKETS)        return display(MSG_DCC_NOT_POSSIBLE);    if (!client.prefs["dcc.enabled"])        return display(MSG_DCC_NOT_ENABLED);        var counts = { pending: 0, connected: 0, failed: 0 };    var k;        // Get all the DCC sessions.    var list = client.dcc.getMatches();        for (k = 0; k < list.length; k++) {        var c = list[k];        var type = c.TYPE.substr(6, c.TYPE.length - 6);                var dir = MSG_UNKNOWN;        var tf = MSG_UNKNOWN;        if (c.state.dir == DCC_DIR_SENDING)        {            dir = MSG_DCCLIST_DIR_OUT;            tf = MSG_DCCLIST_TO;        }        else if (c.state.dir == DCC_DIR_GETTING)        {            dir = MSG_DCCLIST_DIR_IN;            tf = MSG_DCCLIST_FROM;        }                var state = MSG_UNKNOWN;        switch (c.state.state)        {            case DCC_STATE_REQUESTED:                state = MSG_DCC_STATE_REQUEST;                counts.pending++;                break;            case DCC_STATE_ACCEPTED:                state = MSG_DCC_STATE_ACCEPT;                counts.connected++;                break;            case DCC_STATE_DECLINED:                state = MSG_DCC_STATE_DECLINE;                break;            case DCC_STATE_CONNECTED:                state = MSG_DCC_STATE_CONNECT;                counts.connected++;                break;            case DCC_STATE_DONE:                state = MSG_DCC_STATE_DISCONNECT;                break;            case DCC_STATE_ABORTED:                state = MSG_DCC_STATE_ABORT;                counts.failed++;                break;            case DCC_STATE_FAILED:                state = MSG_DCC_STATE_FAIL;                counts.failed++;                break;        }        display(getMsg(MSG_DCCLIST_LINE, [k + 1, state, dir, type, tf, c.name,                                           c.remoteIP, c.port]));    }    display(getMsg(MSG_DCCLIST_SUMMARY, [counts.pending, counts.connected,                                          counts.failed]));    return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4cd3ec76af2e3a9922c2d114bf4267b40b388ac2/commands.js/clean/extensions/irc/xul/content/commands.js