summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-14 19:34:28 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-14 19:34:28 +0800
commit4353ce2f6ed88338dbe86f3ca498f6c68b77094d (patch)
treec8219c8c4770dfb321c9d5dc87b77630dce36019 /mbbsd
parent6b90d5d0a3ccca8d6994f10317e4c852a8efeca5 (diff)
downloadpttbbs-4353ce2f6ed88338dbe86f3ca498f6c68b77094d.tar
pttbbs-4353ce2f6ed88338dbe86f3ca498f6c68b77094d.tar.gz
pttbbs-4353ce2f6ed88338dbe86f3ca498f6c68b77094d.tar.bz2
pttbbs-4353ce2f6ed88338dbe86f3ca498f6c68b77094d.tar.lz
pttbbs-4353ce2f6ed88338dbe86f3ca498f6c68b77094d.tar.xz
pttbbs-4353ce2f6ed88338dbe86f3ca498f6c68b77094d.tar.zst
pttbbs-4353ce2f6ed88338dbe86f3ca498f6c68b77094d.zip
- gray safe_delete corpse entries
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4161 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 4d83cfb4..035bc8a6 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -437,6 +437,13 @@ readdoent(int num, fileheader_t * ent)
char *typeattr = "";
char isunread = 0, oisunread = 0;
+#ifdef DETECT_SAFEDEL
+ char iscorpse = (ent->owner[0] == '-') && (ent->owner[1] == 0);
+
+ if (!iscorpse)
+ {
+#endif
+
oisunread = isunread =
brc_unread(currbid, ent->filename, ent->modified);
@@ -487,6 +494,18 @@ readdoent(int num, fileheader_t * ent)
typeattr = ANSI_COLOR(1;30);
type = '+';
}
+#ifdef DETECT_SAFEDEL
+ } // if(!iscorpse)
+ else {
+ // quick display
+ prints(ANSI_COLOR(1;30) "%7d ", num);
+ prints("%-6.5s", ent->date);
+ prints("%-13.12s", ent->owner);
+ prints("╳ %-.*s" ANSI_RESET "\n",
+ t_columns-34, ent->title);
+ return;
+ }
+#endif
title = ent->filename[0]!='L' ? subject(ent->title) : "<本文鎖定>";
if (ent->filemode & FILE_VOTE)
@@ -516,7 +535,7 @@ readdoent(int num, fileheader_t * ent)
strcpy((char*)p-3, " …");
}
- if (!strncmp(title, "[公告]", 6))
+ if (title[0] == '[' && !strncmp(title, "[公告]", 6))
special = 1;
isonline = query_online(ent->owner);