diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-03 20:48:41 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-03 20:48:41 +0800 |
commit | af16dfc53f004ad3515296daff9156ec0751b0b5 (patch) | |
tree | f69dc74bd928ef447b24ccc95e14001db89cf3b2 /mbbsd/talk.c | |
parent | 59865815bbd0227f71941e82c37e5fe1d34c1b1f (diff) | |
download | pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.gz pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.bz2 pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.lz pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.xz pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.tar.zst pttbbs-af16dfc53f004ad3515296daff9156ec0751b0b5.zip |
- add option "default to backup" (from PttSuggest@ptt2)
- user/reg: prevent ambigious regcode.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3962 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 122bf6ea..7c19c5de 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1513,8 +1513,11 @@ do_talk(int fd) fclose(flog); redrawwin(); more(fpath, NA); - getdata(b_lines - 1, 0, "清除(C) 移至備忘錄(M). (C/M)?[C]", - ans, sizeof(ans), LCECHO); + ans[0] = 0; + // force user decide how to deal with the log + while (ans[0] != 'c' && ans[0] != 'm') + getdata(b_lines - 1, 0, "清除(C) 移至備忘錄(M). (c/m)? ", + ans, sizeof(ans), LCECHO); if (*ans == 'm') { fileheader_t mymail; char title[128]; |