diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-11-15 21:18:29 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-11-15 21:18:29 +0800 |
commit | c75475ccf53afefb9121dd34fe922286cbd4ec9a (patch) | |
tree | 9c71de78b7c056271afbc2339c38174ec049c777 | |
parent | 3f50232181d8df8b76f1f5082c43adb03c31a48c (diff) | |
download | pttbbs-c75475ccf53afefb9121dd34fe922286cbd4ec9a.tar pttbbs-c75475ccf53afefb9121dd34fe922286cbd4ec9a.tar.gz pttbbs-c75475ccf53afefb9121dd34fe922286cbd4ec9a.tar.bz2 pttbbs-c75475ccf53afefb9121dd34fe922286cbd4ec9a.tar.lz pttbbs-c75475ccf53afefb9121dd34fe922286cbd4ec9a.tar.xz pttbbs-c75475ccf53afefb9121dd34fe922286cbd4ec9a.tar.zst pttbbs-c75475ccf53afefb9121dd34fe922286cbd4ec9a.zip |
touch deleted/junk board number counter when not using time capsule
well, not tested.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5261 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/announce.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/announce.c b/pttbbs/mbbsd/announce.c index c8eae29a..eba42dab 100644 --- a/pttbbs/mbbsd/announce.c +++ b/pttbbs/mbbsd/announce.c @@ -819,6 +819,21 @@ a_delete(menu_t * pm, const char *backup_dir) vmsg(msg_errsync2); break; default: +#ifndef USE_TIME_CAPSULE + // When not using time capsule, .DIR content may be changed in + // board (BN_DELETE/BN_JUNK) and need to be changed. However + // since that's going to be deprecated in future, let's have a + // simple workaround here. + if (backup_dir) { + const char *bn = NULL; + if (strstr(backup_dir, "/" BN_JUNK "/")) + bn = BN_JUNK; + else if (strstr(backup, "/" BN_DELETED "/")) + bn = BN_DELETED; + if (bn) + setbtotal(getbnum(bn)); + } +#endif break; } |