diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-18 21:53:35 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-18 21:53:35 +0800 |
commit | 3b2a0f97f170bb93fa5fdcf9ebfc55470c38a4c1 (patch) | |
tree | 70b8b90054007e8a258cc4a680b35b63f5fa13b3 /mbbsd/admin.c | |
parent | 763ab3a9a3690e3a262dd46335d68388f9389597 (diff) | |
download | pttbbs-3b2a0f97f170bb93fa5fdcf9ebfc55470c38a4c1.tar pttbbs-3b2a0f97f170bb93fa5fdcf9ebfc55470c38a4c1.tar.gz pttbbs-3b2a0f97f170bb93fa5fdcf9ebfc55470c38a4c1.tar.bz2 pttbbs-3b2a0f97f170bb93fa5fdcf9ebfc55470c38a4c1.tar.lz pttbbs-3b2a0f97f170bb93fa5fdcf9ebfc55470c38a4c1.tar.xz pttbbs-3b2a0f97f170bb93fa5fdcf9ebfc55470c38a4c1.tar.zst pttbbs-3b2a0f97f170bb93fa5fdcf9ebfc55470c38a4c1.zip |
- fix wrong LCECHO
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4191 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 6855daf0..0a105e0d 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -523,7 +523,7 @@ m_mod_board(char *bname) snprintf(bvotebuf, sizeof(bvotebuf), "%d", newbh.bvote); move(20, 0); prints("看板 %s 原來的 BVote:%d", bh.brdname, bh.bvote); - getdata_str(21, 0, "新的 Bvote:", genbuf, 5, LCECHO, bvotebuf); + getdata_str(21, 0, "新的 Bvote:", genbuf, 5, NUMECHO, bvotebuf); newbh.bvote = atoi(genbuf); assert(0<=bid-1 && bid-1<MAX_BOARD); substitute_record(fn_board, &newbh, sizeof(newbh), bid); @@ -620,7 +620,7 @@ m_mod_board(char *bname) if (HasUserPerm(PERM_SYSOP)) { snprintf(genbuf, sizeof(genbuf), "%d", bh.chesscountry); if (getdata_str(16, 0, "設定棋國 (0)無 (1)五子棋 (2)象棋 (3)圍棋", ans, - sizeof(ans), LCECHO, genbuf)){ + sizeof(ans), NUMECHO, genbuf)){ newbh.chesscountry = atoi(ans); if (newbh.chesscountry > CHESSCODE_MAX || newbh.chesscountry < CHESSCODE_NONE) @@ -1093,7 +1093,7 @@ give_money(void) if (!(fp2 = fopen("etc/givemoney.log", "w"))) return 1; - getdata(0, 0, "動用國庫!請輸入正當理由(如活動名稱):", reason, 40, LCECHO); + getdata(0, 0, "動用國庫!請輸入正當理由(如活動名稱):", reason, 40, DOECHO); fprintf(fp2,"\n使用理由: %s\n", reason); getdata(1, 0, "要發錢了嗎(Y/N)[N]", buf, 3, LCECHO); |