summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-02-10 16:07:24 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-02-10 16:07:24 +0800
commitaf72b546138741c3ef237f54be180f655103c543 (patch)
tree808945186f22dcc9c9d447265a5c6376f1a272ce
parent3ab9b834fc5375693d8219563850c93b37f4d946 (diff)
downloadpttbbs-af72b546138741c3ef237f54be180f655103c543.tar
pttbbs-af72b546138741c3ef237f54be180f655103c543.tar.gz
pttbbs-af72b546138741c3ef237f54be180f655103c543.tar.bz2
pttbbs-af72b546138741c3ef237f54be180f655103c543.tar.lz
pttbbs-af72b546138741c3ef237f54be180f655103c543.tar.xz
pttbbs-af72b546138741c3ef237f54be180f655103c543.tar.zst
pttbbs-af72b546138741c3ef237f54be180f655103c543.zip
Revide locked post appearance.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5923 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index b3948234..a458eeaf 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -624,7 +624,6 @@ readdoent(int num, fileheader_t * ent)
{
int type = ' ', title_type = SUBJECT_NORMAL;
const char *title;
- char xtitle[STRLEN];
char *mark, color, special = 0, isonline = 0, recom[8];
char *typeattr = "";
char isunread = 0, oisunread = 0;
@@ -708,13 +707,10 @@ readdoent(int num, fileheader_t * ent)
type = '+';
}
- if (ent->filename[0] == 'L') {
- snprintf(xtitle, sizeof(xtitle), "<��w> %s", subject_ex(ent->title, &title_type));
- title = xtitle;
- } else {
- title = subject_ex(ent->title, &title_type);
- }
+ title = subject_ex(ent->title, &title_type);
+ if (ent->filename[0] == 'L')
+ title_type = SUBJECT_LOCKED;
#ifdef SAFE_ARTICLE_DELETE
if (iscorpse)
@@ -731,6 +727,9 @@ readdoent(int num, fileheader_t * ent)
case SUBJECT_FORWARD:
color = '6', mark = "��";
break;
+ case SUBJECT_LOCKED:
+ color = '5', mark = "��";
+ break;
case SUBJECT_NORMAL:
default:
color = '1', mark = "��";
@@ -743,7 +742,9 @@ readdoent(int num, fileheader_t * ent)
isonline = query_online(ent->owner);
- if(ent->recommend >= MAX_RECOMMENDS)
+ if (title_type == SUBJECT_LOCKED)
+ strcpy(recom,"0m--");
+ else if(ent->recommend >= MAX_RECOMMENDS)
strcpy(recom,"1m�z");
else if(ent->recommend>9)
sprintf(recom,"3m%2d",ent->recommend);