rem: if (client.uiState["toolbar"]) topic = o.channel.topic ? " " + o.channel.topic : " --no topic--"; 
add: if (!mode) mode = getMsg("updateTitleNoMode"); topic = o.channel.topic ? o.channel.topic : getMsg("updateTitleNoTopic"); 
context: function updateTitle (obj){    if ((obj && obj != client.currentObject) || !client.currentObject)        return;    var tstring = "";    var o = new Object();        getObjectDetails (client.currentObject, o);    var net = o.network ? o.network.name : "";    switch (client.currentObject.TYPE)    {        case "IRCServer":        case "IRCNetwork":            var serv = "", nick = "";            if (o.server)            {                serv  = o.server.connection.host;                if (o.server.me)                    nick = o.server.me.properNick;            }                        if (nick) /* user might be disconnected, nick would be undefined */                tstring += "user '" + nick + "' ";                        if (net)                if (serv)                    tstring += "attached to '" + net + "' via " + serv;                else                    if (o.network.connecting)                        tstring += "attaching to '" + net + "'";                    else                        tstring += "no longer attached to '" + net + "'";                        if (tstring)                tstring = "ChatZilla: " + tstring;            else                tstring = "ChatZilla!!";            break;                    case "IRCChannel":            var chan = "(none)", mode = "", topic = "";            chan = o.channel.name;            mode = o.channel.mode.getModeStr();            if (client.uiState["toolbar"])                topic = o.channel.topic ? " " + o.channel.topic :                    " --no topic--";            if (!mode)                mode = "no mode";            tstring = "ChatZilla: " + chan + " (" + mode + ") " + topic;            break;        case "IRCUser":            tstring = "ChatZilla: Conversation with " +                client.currentObject.properNick;            break;        default:            tstring = "ChatZilla!";            break;    }    if (!client.uiState["toolbar"])    {        var actl = new Array();        for (var i in client.activityList)            actl.push ((client.activityList[i] == "!") ?                       (Number(i) + 1) + "!" : (Number(i) + 1));        if (actl.length > 0)            tstring += " --  Activity [" + actl.join (", ") + "]";    }    document.title = tstring;}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/f77a192820b93a799f8fbed0a40a7e282c66b85e/static.js/buggy/xul/content/static.js