rem:  if (document.location.search) gotoIRCURL (document.location.search.substr(1)); 
add:  var wentSomewhere = false;  if (window.arguments && window.arguments[0] && window.arguments[0].url) { url = window.arguments[0].url; if (url.search(/^irc:\/?\/?$/i) == -1) { /* if the url is not irc: irc:/ or irc: gotoIRCURL (url); wentSomewhere = true; } }  if (!wentSomewhere) { /* if we had nowhere else to go, connect to any default urls */ var ary = client.INITIAL_URLS.split(";"); for (var i in ary) if ((ary[i] = stringTrim(ary[i]))) gotoIRCURL (ary[i]); } 
context: function initStatic(){    var obj;    const nsISound = Components.interfaces.nsISound;    client.sound =        Components.classes["@mozilla.org/sound;1"].createInstance(nsISound);        var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/);    if (ary)        client.userAgent = "ChatZilla " + client.version + " [Mozilla " +             ary[1] + "/" + ary[2] + "]";    else        client.userAgent = "ChatZilla " + client.version + "[" +             navigator.userAgent + "]";    obj = document.getElementById("input");    obj.addEventListener("keyup", onInputKeyUp, false);    obj = document.getElementById("multiline-input");    obj.addEventListener("keyup", onMultilineInputKeyUp, false);    window.onkeypress = onWindowKeyPress;    setMenuCheck ("menu-dmessages",                   client.eventPump.getHook ("event-tracer").enabled);    setMenuCheck ("menu-munger", client.munger.enabled);    client.uiState["toolbar"] =        setMenuCheck ("menu-view-toolbar", isVisible("views-tbar"));    client.uiState["info"] =        setMenuCheck ("menu-view-info", isVisible("user-list-box"));    client.uiState["status"] =        setMenuCheck ("menu-view-status", isVisible("status-bar-tbar"));    client.statusBar = new Object();        client.statusBar["net-name"] =        document.getElementById ("net-name");    client.statusBar["server-name"] =        document.getElementById ("server-name");    client.statusBar["server-nick"] =        document.getElementById ("server-nick");    client.statusBar["server-lag"] =        document.getElementById ("server-lag");    client.statusBar["last-ping"] =        document.getElementById ("last-ping");    client.statusBar["channel-name"] =        document.getElementById ("channel-name");    client.statusBar["channel-limit"] =        document.getElementById ("channel-limit");    client.statusBar["channel-key"] =        document.getElementById ("channel-key");    client.statusBar["channel-mode"] =        document.getElementById ("channel-mode");    client.statusBar["channel-users"] =        document.getElementById ("channel-users");    client.statusBar["channel-topic"] =        document.getElementById ("channel-topic");    client.statusBar["channel-topicby"] =        document.getElementById ("channel-topicby");    onSortCol ("usercol-nick");    client.display (getMsg("welcome"), "HELLO");    setCurrentObject (client);    client.onInputNetworks();    client.onInputCommands();    var ary = client.INITIAL_URLS.split(";");    for (var i in ary)    {        ary[i] = stringTrim(ary[i]);        if (ary[i])        {            if (ary[i].indexOf("irc://") != 0)                ary[i] = "irc://" + ary[i];            gotoIRCURL (ary[i]);        }    }    ary = client.INITIAL_VICTIMS.split(";");    for (i in ary)    {        ary[i] = stringTrim(ary[i]);        if (ary[i])            client.stalkingVictims.push (ary[i]);    }    var m = document.getElementById ("menu-settings-autosave");    m.setAttribute ("checked", String(client.SAVE_SETTINGS));                        if (document.location.search)        gotoIRCURL (document.location.search.substr(1));    setInterval ("onNotifyTimeout()", client.NOTIFY_TIMEOUT);    }
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/0620dc931dff07680c3745d3e3d630abccacdb30/static.js/clean/xul/content/static.js