From 63d1fd611bc531eeadb5fbd0dd18055c70b710c8 Mon Sep 17 00:00:00 2001 From: scw Date: Sun, 18 Sep 2005 08:52:46 +0000 Subject: allow setting go chess country on new board git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3189 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/admin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbbsd/admin.c b/mbbsd/admin.c index b4221b75..74efe5a5 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -564,7 +564,7 @@ m_mod_board(char *bname) #ifdef CHESSCOUNTRY if (HasUserPerm(PERM_SYSOP)) { snprintf(genbuf, sizeof(genbuf), "%d", bh.chesscountry); - if (getdata_str(16, 0, "設定棋國 (0)無 (1)五子棋 (2)象棋 (3) 圍棋", ans, + if (getdata_str(16, 0, "設定棋國 (0)無 (1)五子棋 (2)象棋 (3)圍棋", ans, sizeof(ans), LCECHO, genbuf)){ newbh.chesscountry = atoi(ans); if (newbh.chesscountry > CHESSCODE_MAX || @@ -878,7 +878,7 @@ m_newbrd(int whatclass, int recover) newboard.level = 0; getdata(11, 0, "板主名單:", newboard.BM, sizeof(newboard.BM), DOECHO); #ifdef CHESSCOUNTRY - if (getdata_str(12, 0, "設定棋國 (0)無 (1)五子棋 (2)象棋", ans, + if (getdata_str(12, 0, "設定棋國 (0)無 (1)五子棋 (2)象棋 (3)圍棋", ans, sizeof(ans), LCECHO, "0")){ newboard.chesscountry = atoi(ans); if (newboard.chesscountry > CHESSCODE_MAX || -- cgit v1.2.3