add: if (client.viewsArray.length < 2) { client.currentObject.display ("Cannot delete last view.", "ERROR"); return; } 
context: function onDeleteCurrentView(){    var tb = getTBForObject(client.currentObject);        if (tb)    {        var i = deleteToolbutton (tb);        if (i != -1)        {            delete client.currentObject.messages;            if (i >= client.viewsArray.length)                i = client.viewsArray.length - 1;                        setCurrentObject (client.viewsArray[i].source);        }            }    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b4eb7b1f6889fbae4feaffd347d4a5a91b4aae44/handlers.js/buggy/extensions/irc/xul/content/handlers.js