diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-07 14:04:47 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-07 14:04:47 +0800 |
commit | 735c0af69f7d5f547d7f714fe47881b513b91fa8 (patch) | |
tree | cc2262fd99004d290e6acb0a73a9ac03d5ce9f56 /mbbsd/bbs.c | |
parent | 9d517c2dd00769cec30f784dd6ecab23c6551f75 (diff) | |
download | pttbbs-735c0af69f7d5f547d7f714fe47881b513b91fa8.tar pttbbs-735c0af69f7d5f547d7f714fe47881b513b91fa8.tar.gz pttbbs-735c0af69f7d5f547d7f714fe47881b513b91fa8.tar.bz2 pttbbs-735c0af69f7d5f547d7f714fe47881b513b91fa8.tar.lz pttbbs-735c0af69f7d5f547d7f714fe47881b513b91fa8.tar.xz pttbbs-735c0af69f7d5f547d7f714fe47881b513b91fa8.tar.zst pttbbs-735c0af69f7d5f547d7f714fe47881b513b91fa8.zip |
- change hard-coded board names to defines
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3649 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 4a051f35..af034a42 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1306,7 +1306,7 @@ edit_post(int ent, fileheader_t * fhdr, const char *direct) int recordTouched = 0; assert(0<=currbid-1 && currbid-1<MAX_BOARD); - if (strcmp(bp->brdname, "Security") == 0) + if (strcmp(bp->brdname, GLOBAL_SECURITY) == 0) return DONOTHING; // XXX 不知何時起, edit_post 已經不會有 + 號了... @@ -2682,7 +2682,7 @@ del_range(int ent, const fileheader_t *fhdr, const char *direct) /* 有三種情況會進這裡, 信件, 看板, 精華區 */ if( !(direct[0] == 'h') ){ /* 信件不用 check */ bp = getbcache(currbid); - if (strcmp(bp->brdname, "Security") == 0) + if (strcmp(bp->brdname, GLOBAL_SECURITY) == 0) return DONOTHING; } @@ -2754,7 +2754,7 @@ del_post(int ent, fileheader_t * fhdr, char *direct) else tusernum = searchuser(fhdr->owner, NULL); - if (strcmp(bp->brdname, "Security") == 0) + if (strcmp(bp->brdname, GLOBAL_SECURITY) == 0) return DONOTHING; if ((fhdr->filemode & FILE_BOTTOM) || (fhdr->filemode & FILE_MARKED) || (fhdr->filemode & FILE_DIGEST) || |