diff options
author | mhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-12 03:33:24 +0800 |
---|---|---|
committer | mhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-12 03:33:24 +0800 |
commit | 23a7d3105810b858f256c14164ef44805df10d70 (patch) | |
tree | c3d2c8f7142b8072fc5e6c7f05723fc1d86afea9 /mbbsd | |
parent | 4f06eec152a24f49492388c06cba41108547fcbb (diff) | |
download | pttbbs-23a7d3105810b858f256c14164ef44805df10d70.tar pttbbs-23a7d3105810b858f256c14164ef44805df10d70.tar.gz pttbbs-23a7d3105810b858f256c14164ef44805df10d70.tar.bz2 pttbbs-23a7d3105810b858f256c14164ef44805df10d70.tar.lz pttbbs-23a7d3105810b858f256c14164ef44805df10d70.tar.xz pttbbs-23a7d3105810b858f256c14164ef44805df10d70.tar.zst pttbbs-23a7d3105810b858f256c14164ef44805df10d70.zip |
Ask for confirmation before clearing writelog.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4831 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/talk.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index e807cf64..dd4217ac 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1114,7 +1114,14 @@ t_display(void) else vmsg("信箱儲存失敗。"); } else if (*ans == 'c') - unlink(genbuf); + { + getdata(b_lines - 1, 0, "確定清除?(y/N) [N] ", + ans, sizeof(ans), LCECHO); + if(*ans == 'Y' || *ans == 'y') + unlink(genbuf); + else + vmsg("取消清除。"); + } return FULLUPDATE; } return DONOTHING; |