From 3ae9dbce238647d71438ffe4c7a7bb123683aaf4 Mon Sep 17 00:00:00 2001 From: robertabcd Date: Wed, 13 Aug 2014 17:27:37 +0000 Subject: 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 --- pttbbs/mbbsd/psb.c | 12 +++++------- 1 file 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; } -- cgit v1.2.3