rem: network.INITIAL_NICK  = prefManager.prefs["nickname"]; network.INITIAL_NAME  = prefManager.prefs["username"]; network.INITIAL_DESC  = prefManager.prefs["desc"]; network.INITIAL_UMODE = prefManager.prefs["usermode"]; 
add: var value = prefManager.prefs["nickname"]; if (value != CIRCNetwork.prototype.INITIAL_NICK) network.INITIAL_NICK = value;  value = prefManager.prefs["username"]; if (value != CIRCNetwork.prototype.INITIAL_NAME) network.INITIAL_NAME = value;  value = prefManager.prefs["desc"]; if (value != CIRCNetwork.prototype.INITIAL_DESC) network.INITIAL_DESC = value;  value = prefManager.prefs["usermode"]; if (value != CIRCNetwork.prototype.INITIAL_UMODE) network.INITIAL_UMODE = value;  
context: function getNetworkPrefManager(network){    function defer(prefName)    {        return client.prefs[prefName];    };    function onPrefChanged(prefName, newValue, oldValue)    {        onNetworkPrefChanged (network, prefName, newValue, oldValue);    };    var logDefault = client.prefManager.logPath.clone();    logDefault.append(escapeFileName(pref_mungeName(network.name)) + ".log");    var prefs =        [         ["charset",          defer],         ["collapseMsgs",     defer],         ["desc",             defer],         ["displayHeader",    client.prefs["networkHeader"]],         ["log",              client.prefs["networkLog"]],         ["logFileName",      logDefault.path],         ["motif.current",    defer],         ["nickname",         defer],         ["outputWindowURL",  defer],         ["reconnect",        defer],         ["username",         defer],         ["usermode",         defer]        ];    var branch = "extensions.irc.networks." + pref_mungeName(network.name) +        ".";    var prefManager = new PrefManager(branch);    prefManager.addPrefs(prefs);    prefManager.onPrefChanged = onPrefChanged;    network.INITIAL_NICK  = prefManager.prefs["nickname"];    network.INITIAL_NAME  = prefManager.prefs["username"];    network.INITIAL_DESC  = prefManager.prefs["desc"];    network.INITIAL_UMODE = prefManager.prefs["usermode"];    network.stayingPower  = prefManager.prefs["reconnect"];    client.prefManagers.push(prefManager);    return prefManager;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/bf75ef4d6d37cd3561445be983bc2acf6f931d00/prefs.js/buggy/extensions/irc/xul/content/prefs.js