OSDN Git Service

・未更新時に dsNotModify を返さなくなっていたので修正。
authoryoffy <yoffy>
Fri, 21 Nov 2003 03:29:35 +0000 (03:29 +0000)
committeryoffy <yoffy>
Fri, 21 Nov 2003 03:29:35 +0000 (03:29 +0000)
・取得日時の設定はギコナビが管理するので必要が無くなった。

res/ExternalBoardPlugIn/MachiBBSPlugIn.dpr

index 5d8008c..386886d 100644 (file)
@@ -79,7 +79,7 @@ const
        MAJOR_VERSION                   = 1;
        MINOR_VERSION                   = 0;
        RELEASE_VERSION         = 'beta';
-       REVISION_VERSION        = 7;
+       REVISION_VERSION        = 8;
 
 // =========================================================================
 // \8eG\97p\8aÖ\90\94
@@ -456,28 +456,24 @@ begin
                                NewReceive      := 1;
                                Count                           := content.Count;
                        end else begin
-                               if content.Count > 0 then begin
-                                       Result := dsDiffComplete;
-                                       // \92Ç\8bL
-                                       logStream := TFileStream.Create( FilePath, fmOpenReadWrite or fmShareDenyWrite );
-                                       try
-                                               logStream.Position      := logStream.Size;
-                                               logStream.Write( PChar( content.Text )^, Length( content.Text ) );
-                                       finally
-                                               logStream.Free;
-                                       end;
-                                       NewReceive      := Count + 1;
-                                       Count                           := Count + content.Count;
-                               end else begin
-                                       Result := dsNotModify;
+                               Result := dsDiffComplete;
+                               // \92Ç\8bL
+                               logStream := TFileStream.Create( FilePath, fmOpenReadWrite or fmShareDenyWrite );
+                               try
+                                       logStream.Position      := logStream.Size;
+                                       logStream.Write( PChar( content.Text )^, Length( content.Text ) );
+                               finally
+                                       logStream.Free;
                                end;
+                               NewReceive      := Count + 1;
+                               Count                           := Count + content.Count;
                        end;
 
                        // CGI \82©\82ç\82Í\90³\82µ\82¢\93ú\95t\82ª\93¾\82ç\82ê\82È\82¢\82Ì\82Å\8c»\8dÝ\82É\90Ý\92è
                        LastModified    := Now;
-                       RoundDate                       := Now;
-                       IsLogFile                       := True;
                        NewResCount             := content.Count;
+               end else begin
+                       Result := dsNotModify;
                end;
        finally
                uri.Free;