rem: client.closeLogFile(chan); 
add: client.closeLogFile(chan, true); 
context: function checkLogFiles(){    // For every view that has a logfile, check if we need a different file    // based on the current date and the logfile preference. We close the    // current logfile, and display will open the new one based on the pref    // when it's needed.    var d = new Date();    for (var n in client.networks)    {        var net = client.networks[n];        if (net.logFile && (d > net.nextLogFileDate))            client.closeLogFile(net);        if (("primServ" in net) && net.primServ && ("channels" in net.primServ))        {            for (var c in net.primServ.channels)            {                var chan = net.primServ.channels[c];                if (chan.logFile && (d > chan.nextLogFileDate))                    client.closeLogFile(chan);            }        }        if ("users" in net)        {            for (var u in net.users)            {                var user = net.users[u];                if (user.logFile && (d > user.nextLogFileDate))                    client.closeLogFile(user);            }        }    }    for (var dc in client.dcc.chats)    {        var dccChat = client.dcc.chats[dc];        if (dccChat.logFile && (d > dccChat.nextLogFileDate))            client.closeLogFile(dccChat);    }    for (var df in client.dcc.files)    {        var dccFile = client.dcc.files[df];        if (dccFile.logFile && (d > dccFile.nextLogFileDate))            client.closeLogFile(dccFile);    }    // Don't forget about the client tab:    if (client.logFile && (d > client.nextLogFileDate))        client.closeLogFile(client);    // We use the same line again to make sure we keep a constant offset    // from the full hour, in case the timers go crazy at some point.    setTimeout("checkLogFiles()", 3602000 - (Date.now() % 3600000));}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/9f605be547427aedd775ee0b4400a087e0cf4924/static.js/buggy/xul/content/static.js