From 740a230d3a7c64d78ee166544e84bf49a6826968 Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Sun, 8 Mar 2009 13:42:43 +0000 Subject: [PATCH] Bug 481188 - Prevent log rotation from corrupting the commandNest value. r=gijs ChatZilla only. git-svn-id: svn://10.0.0.236/trunk@256482 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/irc/xul/content/ceip/ceip.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/extensions/irc/xul/content/ceip/ceip.js b/mozilla/extensions/irc/xul/content/ceip/ceip.js index f2dba5853bb..c10eeea0a5d 100644 --- a/mozilla/extensions/irc/xul/content/ceip/ceip.js +++ b/mozilla/extensions/irc/xul/content/ceip/ceip.js @@ -200,7 +200,12 @@ function ceip_logevent(data) newFile.createUnique(NORMAL_FILE_TYPE, 0600); oldFile.moveTo(null, newFile.leafName); + /* startLog() will reset the nest, but we might be in the middle of a + * command execution right now and would rather not let that happen. + */ + var commandNest = this.commandNest; this.startLog(); + this.commandNest = commandNest; } catch (ex) {