summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-12 04:16:46 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-12 04:16:46 +0800
commitd6fa881a3c0e1c35629025898bd9deb83b6d32ed (patch)
treeb4ff5c16c43fd5e936f2ea768e8519b464ce7a76 /mbbsd
parent715cf6684ab4b8c733da63fdaa02323fdc38c8d7 (diff)
downloadpttbbs-d6fa881a3c0e1c35629025898bd9deb83b6d32ed.tar
pttbbs-d6fa881a3c0e1c35629025898bd9deb83b6d32ed.tar.gz
pttbbs-d6fa881a3c0e1c35629025898bd9deb83b6d32ed.tar.bz2
pttbbs-d6fa881a3c0e1c35629025898bd9deb83b6d32ed.tar.lz
pttbbs-d6fa881a3c0e1c35629025898bd9deb83b6d32ed.tar.xz
pttbbs-d6fa881a3c0e1c35629025898bd9deb83b6d32ed.tar.zst
pttbbs-d6fa881a3c0e1c35629025898bd9deb83b6d32ed.zip
add show bad post on postlist
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1948 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index dcb99344..c211a652 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -214,6 +214,12 @@ readdoent(int num, fileheader_t * ent)
sprintf(recom,"3m%2d",ent->recommend);
else if(ent->recommend>0)
sprintf(recom,"2m%2d",ent->recommend);
+ else if(ent->recommend<0)
+ sprintf(recom,"0mx%d",-ent->recommend);
+ else if(ent->recommend<-10)
+ sprintf(recom,"0mX%d",-ent->recommend/10);
+ else if(ent->recommend<-99)
+ sprintf(recom,"1m¦H");
else strcpy(recom,"0m ");
prints(
@@ -1332,7 +1338,7 @@ do_add_recommend(char *direct, fileheader_t *fhdr, int ent, char *buf, int type)
if( update ){
get_record(direct, fhdr, sizeof(fhdr), ent);
- fhdr += update;
+ fhdr->recommend += update;
substitute_record(direct, fhdr, sizeof(fhdr), ent);
/*
Ptt: update only necessary