summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
author(no author) <(no author)@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-28 19:29:34 +0800
committer(no author) <(no author)@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-28 19:29:34 +0800
commit0ac54906d02e5e169f4e23b5359bb24f011e451b (patch)
tree3650d8cc6a2c6fdd128aed5fd5049e4785f457f2 /mbbsd
parent2a60314504e21423d1b302e9220ff75360fcec8b (diff)
downloadpttbbs-0ac54906d02e5e169f4e23b5359bb24f011e451b.tar
pttbbs-0ac54906d02e5e169f4e23b5359bb24f011e451b.tar.gz
pttbbs-0ac54906d02e5e169f4e23b5359bb24f011e451b.tar.bz2
pttbbs-0ac54906d02e5e169f4e23b5359bb24f011e451b.tar.lz
pttbbs-0ac54906d02e5e169f4e23b5359bb24f011e451b.tar.xz
pttbbs-0ac54906d02e5e169f4e23b5359bb24f011e451b.tar.zst
pttbbs-0ac54906d02e5e169f4e23b5359bb24f011e451b.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1204 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c28
1 files changed, 18 insertions, 10 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index b08db231..77a5ecc9 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -146,7 +146,7 @@ static void
readdoent(int num, fileheader_t * ent)
{
int type;
- char *mark, *title, color, special = 0, isonline = 0, recom[3];
+ char *mark, *title, color, special = 0, isonline = 0, recom[5];
userinfo_t *uentp;
type = brc_unread(ent->filename, brc_num, brc_list) ? '+' : ' ';
@@ -164,7 +164,7 @@ readdoent(int num, fileheader_t * ent)
}
title = subject(mark = ent->title);
if (ent->filemode & FILE_BID)
- color = '1', mark = "B:";
+ color = '1', mark = "$";
else if (title == mark)
color = '1', mark = "□";
else
@@ -186,16 +186,18 @@ readdoent(int num, fileheader_t * ent)
isonline = 1;
#endif
if(ent->recommend>99)
- strcpy(recom,"--");
+ strcpy(recom,"1m爆");
+ else if(ent->recommend>10);
+ sprintf(recom,"3m%2d",ent->recommend);
else if(ent->recommend>0)
- sprintf(recom,"%2d",ent->recommend);
- else strcpy(recom," ");
+ sprintf(recom,"2m%2d",ent->recommend);
+ else strcpy(recom,"0m ");
prints(
#ifdef COLORDATE
- "%6d %c\033[1;32m%2.2s\033[%dm%-6s\033[m\033[%dm%-13.12s",
+ "%6d %c\033[1;3%2.2s\033[%dm%-6s\033[m\033[%dm%-13.12s",
#else
- "%6d %c\033[1;32m%2.2s\033[m%-6s\033[%dm%-13.12s",
+ "%6d %c\033[1;3%2.2s\033[m%-6s\033[%dm%-13.12s",
#endif
num, type, recom,
#ifdef COLORDATE
@@ -1386,19 +1388,25 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp, char *direct, struct t
pressanykey();
return FULLUPDATE;
}
+ if (strcmp(cuser.userid, fhdr->owner) == 0){
+ vmsg("警告! 本人不能出價!");
+ return FULLUPDATE;
+ }
getdata_str(23,0,"是否要下標? (y/N)", genbuf, 3, LCECHO,"n");
if(genbuf[0]!='y') return FULLUPDATE;
- getdata(23, 0, "您的最高下標金額(0:取消):", genbuf, 8, LCECHO);
+ wile
+ getdata(23, 0, "您的最高下標金額(0:取消):", genbuf, 7, LCECHO);
+
i=atoi(genbuf);
get_record(fpath, &bidinfo, sizeof(bidinfo), 1);
- if(bidinfo.userid[0])
+ if(!bidinfo.userid[0])
next=bidinfo.high;
else
next=bidinfo.high + bidinfo.increment;
- if(i< next);
+ if(i< next || (payby==0 && cuser.money<i ));
{
outmsg("取消下標或標金不足");
pressanykey();