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 | |
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')
-rw-r--r-- | mbbsd/admin.c | 6 | ||||
-rw-r--r-- | mbbsd/bbs.c | 14 | ||||
-rw-r--r-- | mbbsd/cal.c | 4 | ||||
-rw-r--r-- | mbbsd/read.c | 2 |
4 files changed, 13 insertions, 13 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); diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 4f5a8779..3051e19d 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id$ */ + #include "bbs.h" #ifdef EDITPOST_SMARTMERGE @@ -2090,7 +2090,7 @@ editLimits(unsigned char *pregtime, unsigned char *plogins, sprintf(genbuf, "%u", regtime); do { getdata_buf(b_lines - 1, 0, - "註冊時間限制 (以'月'為單位,0~255):", genbuf, 4, LCECHO); + "註冊時間限制 (以'月'為單位,0~255):", genbuf, 4, NUMECHO); temp = atoi(genbuf); } while (temp < 0 || temp > 255); regtime = (unsigned char)temp; @@ -2098,7 +2098,7 @@ editLimits(unsigned char *pregtime, unsigned char *plogins, sprintf(genbuf, "%u", logins*10); do { getdata_buf(b_lines - 1, 0, - "上站次數下限 (0~2550,以10為單位,個位數字將自動捨去):", genbuf, 5, LCECHO); + "上站次數下限 (0~2550,以10為單位,個位數字將自動捨去):", genbuf, 5, NUMECHO); temp = atoi(genbuf); } while (temp < 0 || temp > 2550); logins = (unsigned char)(temp / 10); @@ -2106,7 +2106,7 @@ editLimits(unsigned char *pregtime, unsigned char *plogins, sprintf(genbuf, "%u", posts*10); do { getdata_buf(b_lines - 1, 0, - "文章篇數下限 (0~2550,以10為單位,個位數字將自動捨去):", genbuf, 5, LCECHO); + "文章篇數下限 (0~2550,以10為單位,個位數字將自動捨去):", genbuf, 5, NUMECHO); temp = atoi(genbuf); } while (temp < 0 || temp > 2550); posts = (unsigned char)(temp / 10); @@ -2114,7 +2114,7 @@ editLimits(unsigned char *pregtime, unsigned char *plogins, sprintf(genbuf, "%u", 255 - badpost); do { getdata_buf(b_lines - 1, 0, - "劣文篇數上限 (0~255):", genbuf, 5, LCECHO); + "劣文篇數上限 (0~255):", genbuf, 5, NUMECHO); temp = atoi(genbuf); } while (temp < 0 || temp > 255); badpost = (unsigned char)(255 - temp); @@ -2317,7 +2317,7 @@ hold_gamble(void) if (!(fp = fopen(tmp, "w"))) return FULLUPDATE; do { - getdata(2, 0, "輸入彩票價格 (價格:10-10000):", yn, 6, LCECHO); + getdata(2, 0, "輸入彩票價格 (價格:10-10000):", yn, 6, NUMECHO); i = atoi(yn); } while (i < 10 || i > 10000); fprintf(fp, "%d\n", i); @@ -2620,7 +2620,7 @@ do_bid(int ent, fileheader_t * fhdr, const boardheader_t *bp, if( genbuf[0] != 'y' ) return FULLUPDATE; - getdata(23, 0, "您的最高下標金額(0:取消):", genbuf, 10, LCECHO); + getdata(23, 0, "您的最高下標金額(0:取消):", genbuf, 10, NUMECHO); mymax = atoi(genbuf); if( mymax <= 0 ){ vmsg("取消下標"); diff --git a/mbbsd/cal.c b/mbbsd/cal.c index a3b259bc..ca83d7fd 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -313,7 +313,7 @@ p_exmail(void) // no need to create default prompt. // and people usually come this this by accident... - getdata(b_lines - 2, 0, buf, ans, sizeof(ans), LCECHO); + getdata(b_lines - 2, 0, buf, ans, sizeof(ans), NUMECHO); n = atoi(ans); if (!ans[0] || n<=0) @@ -439,7 +439,7 @@ give_money_ui(const char *userid) vmsg("交易取消!"); return -1; } - if (!getdata(2, 0, "要給他多少錢呢: ", money_buf, 7, LCECHO) || + if (!getdata(2, 0, "要給他多少錢呢: ", money_buf, 7, NUMECHO) || ((m = atoi(money_buf)) <= 0)) { vmsg("交易取消!"); diff --git a/mbbsd/read.c b/mbbsd/read.c index 4da10dbd..416be19c 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -435,7 +435,7 @@ select_read(const keeploc_t * locmem, int sr_mode) { if(!getdata(b_lines, 0, currmode & MODE_SELECT ? "增加條件 作者: ":"搜尋作者: ", - keyword, IDLEN+1, LCECHO)) + keyword, IDLEN+1, DOECHO)) return READ_REDRAW; } else if(sr_mode & RS_KEYWORD) |