[Bbs2ch-cvs 171] CVS update: bbs2chreader/content/bbs2chreader/server

Back to archive index

flyson flyso****@users*****
2006年 12月 11日 (月) 01:27:55 JST


Index: bbs2chreader/content/bbs2chreader/server/thread.js
diff -u bbs2chreader/content/bbs2chreader/server/thread.js:1.1.2.7 bbs2chreader/content/bbs2chreader/server/thread.js:1.1.2.8
--- bbs2chreader/content/bbs2chreader/server/thread.js:1.1.2.7	Mon Dec 11 01:13:26 2006
+++ bbs2chreader/content/bbs2chreader/server/thread.js	Mon Dec 11 01:27:55 2006
@@ -656,15 +656,20 @@
 		}
 		
 		for(var i=0; i<datLines.length; i++){
-			this.write(this.datLineParse(datLines[i], i+1, true));
+			this.write(this.datLineParse(datLines[i], this.dat.lineCount+i+1, true));
 		}
 
 		this.write(this.converter.getFooter("ok"));
 		this.close();
 
 		if(httpStatus == 200 || httpStatus == 206){
-			this.dat.lineCount += datLines.length
-			this.datSave(datLines.join("\n"));
+			this.dat.lineCount += datLines.length;
+			
+			var datData = datLines.join("\n");
+			if(this.dat.idxFile.exists()){
+				datData = "\n" + datData;
+			}			
+			this.datSave(datData);
 		}
 		this._data = null;
 	},


bbs2ch-cvs メーリングリストの案内
Back to archive index