summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-01-18 09:29:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-01-18 09:29:17 +0800
commitfa0f1515de173ea246b22e81c736cce5253ca4f8 (patch)
tree07083234cc5b2166f428e2ba20dc3ea775d6071a
parentc5be1abf06fa5dfe4e13fd5cbd1ecad8a7e6f6bd (diff)
downloadpttbbs-fa0f1515de173ea246b22e81c736cce5253ca4f8.tar
pttbbs-fa0f1515de173ea246b22e81c736cce5253ca4f8.tar.gz
pttbbs-fa0f1515de173ea246b22e81c736cce5253ca4f8.tar.bz2
pttbbs-fa0f1515de173ea246b22e81c736cce5253ca4f8.tar.lz
pttbbs-fa0f1515de173ea246b22e81c736cce5253ca4f8.tar.xz
pttbbs-fa0f1515de173ea246b22e81c736cce5253ca4f8.tar.zst
pttbbs-fa0f1515de173ea246b22e81c736cce5253ca4f8.zip
fix unmatched quotes in delete
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5517 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 5ccefd87..d575e681 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -983,8 +983,10 @@ deleteCrossPost(const fileheader_t *fh, char *bname)
{
if(!fh || !fh->filename[0]) return;
- if(strcmp(bname, BN_ALLPOST) == 0 || strcmp(bname, BN_NEWIDPOST == 0) ||
- strcmp(bname, BN_ALLHIDPOST) == 0 || strcmp(bname, BN_UNANONYMOUS) == 0) {
+ if(strcmp(bname, BN_ALLPOST) == 0 ||
+ strcmp(bname, BN_ALLHIDPOST) == 0 ||
+ strcmp(bname, BN_NEWIDPOST) == 0 ||
+ strcmp(bname, BN_UNANONYMOUS) == 0 ) {
// These files (in BN_ALLPOST etc) has a '.BOARD' refrence in title
int len=0;
char xbname[TTLEN + 1], *po = strrchr(fh->title, '.');