summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-12-21 00:28:53 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-12-21 00:28:53 +0800
commit2cd2220c27e46673b4b83ad2c885ded3309b5aac (patch)
tree95e002aa0fd9eeae73454012e4c9ac3a8f7c90f2 /mbbsd/edit.c
parent8fdc260eb36e797aa0c8efa5daf0cd13ba1c1d9a (diff)
downloadpttbbs-2cd2220c27e46673b4b83ad2c885ded3309b5aac.tar
pttbbs-2cd2220c27e46673b4b83ad2c885ded3309b5aac.tar.gz
pttbbs-2cd2220c27e46673b4b83ad2c885ded3309b5aac.tar.bz2
pttbbs-2cd2220c27e46673b4b83ad2c885ded3309b5aac.tar.lz
pttbbs-2cd2220c27e46673b4b83ad2c885ded3309b5aac.tar.xz
pttbbs-2cd2220c27e46673b4b83ad2c885ded3309b5aac.tar.zst
pttbbs-2cd2220c27e46673b4b83ad2c885ded3309b5aac.zip
cross post only happen on different boards
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2383 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index a115c214..6544bb12 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1114,13 +1114,15 @@ write_file(char *fpath, int saveheader, int *islocal)
trim(msg);
line++;
- if (currstat == POSTING && po) {
+ if (currstat == POSTING && po ) {
saveheader = str_checksum(msg);
if (saveheader) {
- if (postrecord.checksum[po] == saveheader) {
+ if (postrecord.last_bid != currbid &&
+ postrecord.checksum[po] == saveheader) {
po++;
if (po > 3) {
postrecord.times++;
+ postrecord.last_bid = currbid;
po = 0;
}
} else