summaryrefslogtreecommitdiffstats
path: root/mbbsd/chess.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-10-08 21:51:52 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-10-08 21:51:52 +0800
commitc553b99da5b4df4a76caf3e5975496f8d040a817 (patch)
tree350483312e3d45faac119d53be8b23573ba483b2 /mbbsd/chess.c
parent5884cbc7af026195dac676763e901c0042364afc (diff)
downloadpttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar
pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.gz
pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.bz2
pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.lz
pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.xz
pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.zst
pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.zip
add article header for chess log. also hint user the replay log hotkey 'z'.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chess.c')
-rw-r--r--mbbsd/chess.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mbbsd/chess.c b/mbbsd/chess.c
index f243b208..04344d80 100644
--- a/mbbsd/chess.c
+++ b/mbbsd/chess.c
@@ -922,13 +922,16 @@ ChessGenLogGlobal(ChessInfo* info, ChessGameResult result)
fp = fopen(fname, "w");
if (fp != NULL) {
- info->actions->genlog(info, fp, result);
- fclose(fp);
-
strlcpy(log_header.owner, "[棋譜機器人]", sizeof(log_header.owner));
snprintf(log_header.title, sizeof(log_header.title), "[棋譜] %s VS %s",
info->user1.userid, info->user2.userid);
+ fprintf(fp, "作者: %s 看板: %s\n標題: %s \n", log_header.owner, info->constants->log_board, log_header.title);
+ fprintf(fp, "時間: %s\n", ctime4(&now));
+
+ info->actions->genlog(info, fp, result);
+ fclose(fp);
+
setbdir(fname, info->constants->log_board);
append_record(fname, &log_header, sizeof(log_header));