diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-07-22 12:46:30 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-07-22 12:46:30 +0800 |
commit | b2f9ce016a9f5fa0b9304d3fe1180f730b05f025 (patch) | |
tree | 0ef1f0a0e37675480509b1f2e05b9ac012f310e3 | |
parent | e04e87efd415a7b406e16269985b98f739924177 (diff) | |
download | pttbbs-b2f9ce016a9f5fa0b9304d3fe1180f730b05f025.tar pttbbs-b2f9ce016a9f5fa0b9304d3fe1180f730b05f025.tar.gz pttbbs-b2f9ce016a9f5fa0b9304d3fe1180f730b05f025.tar.bz2 pttbbs-b2f9ce016a9f5fa0b9304d3fe1180f730b05f025.tar.lz pttbbs-b2f9ce016a9f5fa0b9304d3fe1180f730b05f025.tar.xz pttbbs-b2f9ce016a9f5fa0b9304d3fe1180f730b05f025.tar.zst pttbbs-b2f9ce016a9f5fa0b9304d3fe1180f730b05f025.zip |
confirmation of cancelling vote
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3381 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/vote.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c index 62fa1c3b..9a499d52 100644 --- a/mbbsd/vote.c +++ b/mbbsd/vote.c @@ -541,6 +541,11 @@ vote_view(vote_buffer_t *vbuf, const char *bname, int vote_index) getdata(b_lines - 1, 0, "(A)取消投票 (B)提早開票 (C)繼續?[C] ", genbuf, 4, LCECHO); if (genbuf[0] == 'a') { + getdata(b_lines - 1, 0, "請再次確認取消投票 (Y/N) [N] ", genbuf, + 4, LCECHO); + if (genbuf[0] == 'n') + return FULLUPDATE; + setbfile(buf, bname, vbuf->control); unlink(buf); setbfile(buf, bname, vbuf->flags); |