summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-05 01:38:10 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-05 01:38:10 +0800
commit0b05ffe0a27cf1c9e7fa65d6bfe7276560a747ba (patch)
treebaa0e64fc2986629667ec176198cf7acae8a52e5
parent54a74c3038e133506849ac140b604e508c0f03a3 (diff)
downloadpttbbs-0b05ffe0a27cf1c9e7fa65d6bfe7276560a747ba.tar
pttbbs-0b05ffe0a27cf1c9e7fa65d6bfe7276560a747ba.tar.gz
pttbbs-0b05ffe0a27cf1c9e7fa65d6bfe7276560a747ba.tar.bz2
pttbbs-0b05ffe0a27cf1c9e7fa65d6bfe7276560a747ba.tar.lz
pttbbs-0b05ffe0a27cf1c9e7fa65d6bfe7276560a747ba.tar.xz
pttbbs-0b05ffe0a27cf1c9e7fa65d6bfe7276560a747ba.tar.zst
pttbbs-0b05ffe0a27cf1c9e7fa65d6bfe7276560a747ba.zip
- talk: warn user that we don'e accept empty input for talklog decision.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3964 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/talk.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 7c19c5de..03b73815 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1513,11 +1513,19 @@ do_talk(int fd)
fclose(flog);
redrawwin();
more(fpath, NA);
- ans[0] = 0;
+
// force user decide how to deal with the log
- while (ans[0] != 'c' && ans[0] != 'm')
+ while (1) {
getdata(b_lines - 1, 0, "清除(C) 移至備忘錄(M). (c/m)? ",
ans, sizeof(ans), LCECHO);
+ if (ans[0] == 'c' || ans[0] == 'm')
+ break;
+ move(b_lines-2, 0);
+ prints(ANSI_COLOR(0;1;3%d) "請正確輸入 c 或 m 的指令。" ANSI_RESET,
+ (now % 7)+1);
+ if (ans[0] == 0) outs("為避免誤按所以只 ENTER 是不行的。");
+ }
+
if (*ans == 'm') {
fileheader_t mymail;
char title[128];