summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-15 07:49:08 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-15 07:49:08 +0800
commite7c5b93099ada7b9ea65cf0fb798f3699c770b8c (patch)
tree5a417e9a51ce2c134948fd88c4dd624df0b898c9 /mbbsd/bbs.c
parentb1b378db46cf6d83a0aeaaa01341d110d7b6ed43 (diff)
downloadpttbbs-e7c5b93099ada7b9ea65cf0fb798f3699c770b8c.tar
pttbbs-e7c5b93099ada7b9ea65cf0fb798f3699c770b8c.tar.gz
pttbbs-e7c5b93099ada7b9ea65cf0fb798f3699c770b8c.tar.bz2
pttbbs-e7c5b93099ada7b9ea65cf0fb798f3699c770b8c.tar.lz
pttbbs-e7c5b93099ada7b9ea65cf0fb798f3699c770b8c.tar.xz
pttbbs-e7c5b93099ada7b9ea65cf0fb798f3699c770b8c.tar.zst
pttbbs-e7c5b93099ada7b9ea65cf0fb798f3699c770b8c.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1344 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 91cf274a..c7772238 100644
--- a/mbbsd/bbs.c
+++ b/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);