summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 02:13:36 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 02:13:36 +0800
commit768fd4c714a85e3f72c0468f8ef6e5cd9bb74c0d (patch)
tree791aceb31834b8bfa48276da0bfb5f872c873def /mbbsd
parent2eba0858aed01829580b5dce50b5e6f6b7b3089d (diff)
downloadpttbbs-768fd4c714a85e3f72c0468f8ef6e5cd9bb74c0d.tar
pttbbs-768fd4c714a85e3f72c0468f8ef6e5cd9bb74c0d.tar.gz
pttbbs-768fd4c714a85e3f72c0468f8ef6e5cd9bb74c0d.tar.bz2
pttbbs-768fd4c714a85e3f72c0468f8ef6e5cd9bb74c0d.tar.lz
pttbbs-768fd4c714a85e3f72c0468f8ef6e5cd9bb74c0d.tar.xz
pttbbs-768fd4c714a85e3f72c0468f8ef6e5cd9bb74c0d.tar.zst
pttbbs-768fd4c714a85e3f72c0468f8ef6e5cd9bb74c0d.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@235 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index afaa7da1..318cd08a 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.25 2002/05/25 17:52:35 ptt Exp $ */
+/* $Id: bbs.c,v 1.26 2002/05/25 18:13:36 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -426,7 +426,8 @@ static int do_general() {
fileheader_t postfile;
char fpath[80], buf[80];
int aborted, defanony, ifuseanony;
- char genbuf[200],*owner;
+ char genbuf[200],*owner,
+ *ctype[]={"問題","建議","討論","心得","閒聊","公告","情報"};
boardheader_t *bp;
int islocal;
@@ -468,7 +469,15 @@ static int do_general() {
if(quote_file[0])
do_reply_title(20, currtitle);
else {
- getdata(21, 0, "標題:", save_title, TTLEN, DOECHO);
+ getdata(21, 0,
+ "種類:1.問題 2.建議 3.討論 4.心得 5.閒聊 6.公告 7.情報 (1-7或不選)",
+ save_title,3,LCECHO);
+ local_article = save_title[0]-'1';
+ if(local_article>=0 && local_article<=7)
+ sprintf(save_title,"[%s]",ctype[local_article]);
+ else
+ save_title[0]='\0';
+ getdata_buf(22, 0, "標題:", save_title, TTLEN, DOECHO);
strip_ansi(save_title,save_title,0);
}
if(save_title[0] == '\0')