diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-15 07:49:08 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-15 07:49:08 +0800 |
commit | 12b53739c367a611c92d62cfe27fb2b052b53288 (patch) | |
tree | 208c6584ec56efbc25bbc09a5a295fc8dbc5bbe7 | |
parent | 967d728886dc41ab750c08fe165bcf8dedb58c03 (diff) | |
download | pttbbs-12b53739c367a611c92d62cfe27fb2b052b53288.tar pttbbs-12b53739c367a611c92d62cfe27fb2b052b53288.tar.gz pttbbs-12b53739c367a611c92d62cfe27fb2b052b53288.tar.bz2 pttbbs-12b53739c367a611c92d62cfe27fb2b052b53288.tar.lz pttbbs-12b53739c367a611c92d62cfe27fb2b052b53288.tar.xz pttbbs-12b53739c367a611c92d62cfe27fb2b052b53288.tar.zst pttbbs-12b53739c367a611c92d62cfe27fb2b052b53288.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1344 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 91cf274a..c7772238 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -518,7 +518,7 @@ do_general(int isbid) int aborted, defanony, ifuseanony, i; char genbuf[200], *owner, ctype[8][5] = {"問題", "建議", "討論", "心得", "閒聊", "請益", "公告", "情報"}; boardheader_t *bp; - int islocal, posttype=0; + int islocal, posttype=-1; ifuseanony = 0; bp = getbcache(currbid); @@ -598,7 +598,7 @@ do_general(int isbid) else { save_title[0] = '\0'; - posttype=0; + posttype=-1; } } getdata_buf(22, 0, "標題:", save_title, TTLEN, DOECHO); @@ -628,7 +628,7 @@ do_general(int isbid) fclose((FILE*)aborted); } } - else if(posttype && ((1<<posttype) & bp->posttype_f)) + else if(posttype!=-1 && ((1<<posttype) & bp->posttype_f)) { setbnfile(genbuf, bp->brdname, "postsample", posttype); Copy(genbuf, fpath); |