From af16dfc53f004ad3515296daff9156ec0751b0b5 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 3 Mar 2008 12:48:41 +0000 Subject: - 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 --- mbbsd/chess.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mbbsd/chess.c') 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); } -- cgit v1.2.3