summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobertabcd <robertabcd@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-08-14 01:27:37 +0800
committerrobertabcd <robertabcd@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-08-14 01:27:37 +0800
commit3ae9dbce238647d71438ffe4c7a7bb123683aaf4 (patch)
tree3cbe962296020d514233bef713c8c905a0742e40
parent1ecea914f8c0aa7aa72454546059b7bac5e6a272 (diff)
downloadpttbbs-3ae9dbce238647d71438ffe4c7a7bb123683aaf4.tar
pttbbs-3ae9dbce238647d71438ffe4c7a7bb123683aaf4.tar.gz
pttbbs-3ae9dbce238647d71438ffe4c7a7bb123683aaf4.tar.bz2
pttbbs-3ae9dbce238647d71438ffe4c7a7bb123683aaf4.tar.lz
pttbbs-3ae9dbce238647d71438ffe4c7a7bb123683aaf4.tar.xz
pttbbs-3ae9dbce238647d71438ffe4c7a7bb123683aaf4.tar.zst
pttbbs-3ae9dbce238647d71438ffe4c7a7bb123683aaf4.zip
In comment, show userid even the comment is deleted. So BM can know what he's doing when editing ACL.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@6068 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/psb.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/pttbbs/mbbsd/psb.c b/pttbbs/mbbsd/psb.c
index 8fd4b469..eb8c7103 100644
--- a/pttbbs/mbbsd/psb.c
+++ b/pttbbs/mbbsd/psb.c
@@ -686,13 +686,11 @@ pvcm_renderer(int i, int curr, int total GCC_UNUSED, int rows GCC_UNUSED, void *
const CommentBodyReq *resp = CommentsRead(cx->cmctx, i);
if (!resp)
return 0;
- if (resp->type < 0) {
- prints("%c %06d <¤w§R>\n", (i == curr)? '>' : ' ', i + 1);
- } else {
- prints("%c %06d %-12.12s %s\n",
- (i == curr) ? '>' : ' ',
- i + 1, resp->userid, resp->msg);
- }
+ prints("%c %06d %-12.12s %s\n",
+ (i == curr) ? '>' : ' ',
+ i + 1,
+ resp->userid,
+ (resp->type >= 0) ? resp->msg : (ANSI_COLOR(0;30;47) "<¤w§R>" ANSI_RESET));
return 0;
}