From 4e1ad2af155038106cd14a7f5deeee5771b3a531 Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 12 Jun 2009 19:35:18 +0000 Subject: * fix bug: incorrect user's tmp buf filename. * don't test upper case if getdata with LCECHO flag * add some comment * some small code revise git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4585 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 338ac7c2..8099e60d 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -307,11 +307,12 @@ set_board(void) } } +// post 文章不算錢的板 int IsFreeBoardName(const char *brdname) { - if (strcmp(currboard, BN_TEST) == 0) + if (strcmp(brdname, BN_TEST) == 0) return 1; - if (strcmp(currboard, BN_ALLPOST) == 0) + if (strcmp(brdname, BN_ALLPOST) == 0) return 1; return 0; } @@ -3602,9 +3603,9 @@ tar_addqueue(void) } #endif getdata(6, 0, "要備份看板內容嗎(Y/N)?[Y]", ans, sizeof(ans), LCECHO); - bakboard = (ans[0] == 'n' || ans[0] == 'N') ? 0 : 1; + bakboard = (ans[0] == 'n') ? 0 : 1; getdata(7, 0, "要備份精華區內容嗎(Y/N)?[N]", ans, sizeof(ans), LCECHO); - bakman = (ans[0] == 'y' || ans[0] == 'Y') ? 1 : 0; + bakman = (ans[0] == 'y') ? 1 : 0; if (!bakboard && !bakman) { move(8, 0); outs("可是我們只能備份看板或精華區的耶 ^^\"\"\""); -- cgit v1.2.3