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/chess.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/chess.c')
-rw-r--r-- | mbbsd/chess.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/chess.c b/mbbsd/chess.c index 6d28e603..a86ca766 100644 --- a/mbbsd/chess.c +++ b/mbbsd/chess.c @@ -1003,12 +1003,17 @@ ChessGenLogUser(ChessInfo* info, ChessGameResult result) static void ChessGenLog(ChessInfo* info, ChessGameResult result) { + char a = 0; if (info->mode == CHESS_MODE_VERSUS && info->myturn == 0 && info->constants->log_board) { ChessGenLogGlobal(info, result); } - if (getans("是否將棋譜寄回信箱?[N/y]") == 'y') + a = getans((cuser.uflag & DEFBACKUP_FLAG) ? + "是否將棋譜寄回信箱? [Y/n]" : + "是否將棋譜寄回信箱? [y/N]"); + + if (TOBACKUP(a)) ChessGenLogUser(info, result); } |