From 6b189c0c1aca68829f07bc11e2740af5dd617c5f Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 19 Jun 2009 06:29:17 +0000 Subject: * don't log useless etc/othello.secret git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4664 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/othello.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/othello.c b/mbbsd/othello.c index 70fd0961..27e385dc 100644 --- a/mbbsd/othello.c +++ b/mbbsd/othello.c @@ -2,7 +2,6 @@ #include "bbs.h" #define LOGFILE "etc/othello.log" -#define SECRET "etc/othello.secret" #define NR_TABLE 2 #define true 1 @@ -211,21 +210,13 @@ eat(int x, int y, int color, char chessboard[][10]) static void end_of_game(struct OthelloData *od, int quit) { - FILE *fp, *fp1; + FILE *fp; char *opponent[] = {"", "CD-65", "", "嬰兒", "小孩", "", "大人", "專家"}; move(STARTX - 1, 30); outs(" "); move(22, 35); fp = fopen(LOGFILE, "a"); - if (!quit) { - fp1 = fopen(SECRET, "a"); - if (fp1) { - fprintf(fp1, "%d,%d,%s,%02d,%02d\n", od->think, od->which_table, - cuser.userid, od->number[0], od->number[1]); - fclose(fp1); - } - } if (quit) { if (od->number[0] == 2 && od->number[1] == 2) { if (fp) -- cgit v1.2.3