add: if (e.view.TYPE == "IRCNetwork" && (e.view.state == NET_CONNECTING || e.view.state == NET_WAITING)) { e.view.dispatch("cancel", { deleteWhenDone: true }); return; } 
context: function cmdDeleteView(e){    if (!e.view)        e.view = e.sourceObject;    if (e.view.TYPE == "IRCChannel" && e.view.active)        e.view.part();    if (e.view.TYPE == "IRCDCCChat" && e.view.active)        e.view.disconnect();    if (client.viewsArray.length < 2)    {        display(MSG_ERR_LAST_VIEW, MT_ERROR);        return;    }    var tb = getTabForObject(e.view);    if (tb)    {        var i = deleteTab (tb);        if (i != -1)        {            if (e.view.logFile)            {                e.view.logFile.close();                e.view.logFile = null;            }            delete e.view.messageCount;            delete e.view.messages;            client.deck.removeChild(e.view.frame);            delete e.view.frame;            var oldView = client.currentObject;            if (client.currentObject == e.view)            {                if (i >= client.viewsArray.length)                    i = client.viewsArray.length - 1;                oldView = client.viewsArray[i].source            }            client.currentObject = null;            oldView.dispatch("set-current-view", { view: oldView });        }    }}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/626a5bd90a8469b1edf97aec6a3d7895dc52961c/commands.js/clean/xul/content/commands.js