summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-29 23:31:48 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-29 23:31:48 +0800
commit264c36242e94aeb423a5f05de749b36b21df25c0 (patch)
tree568229d90f44373ab66958594fe047ae41041c00 /mbbsd/user.c
parentffe7ef60716d2d6a90e85a60d8e0f10c830ccb62 (diff)
downloadpttbbs-264c36242e94aeb423a5f05de749b36b21df25c0.tar
pttbbs-264c36242e94aeb423a5f05de749b36b21df25c0.tar.gz
pttbbs-264c36242e94aeb423a5f05de749b36b21df25c0.tar.bz2
pttbbs-264c36242e94aeb423a5f05de749b36b21df25c0.tar.lz
pttbbs-264c36242e94aeb423a5f05de749b36b21df25c0.tar.xz
pttbbs-264c36242e94aeb423a5f05de749b36b21df25c0.tar.zst
pttbbs-264c36242e94aeb423a5f05de749b36b21df25c0.zip
For personal privacy, some functions should only be used on debug purpose.
Approved by in2. git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@504 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 8aaf6df0..b948dec4 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.36 2002/08/27 17:42:27 in2 Exp $ */
+/* $Id: user.c,v 1.37 2002/08/29 15:31:48 kcwu Exp $ */
#include "bbs.h"
static char *sex[8] = {
@@ -1163,7 +1163,7 @@ u_register(void)
}
/* 列出所有註冊使用者 */
-static int usercounter, totalusers, showrealname;
+static int usercounter, totalusers;
static ushort u_list_special;
static int
@@ -1178,7 +1178,7 @@ u_list_CB(userec_t * uentp)
clrtoeol();
prints("\033[7m 使用者代號 %-25s 上站 文章 %s "
"最近光臨日期 \033[0m\n",
- showrealname ? "真實姓名" : "綽號暱稱",
+ "綽號暱稱",
HAS_PERM(PERM_SEEULEVELS) ? "等級" : "");
i = 3;
return 0;
@@ -1228,7 +1228,7 @@ u_list_CB(userec_t * uentp)
ptr[18] = '\0';
prints("%-14s %-27.27s%5d %5d %s %s\n",
uentp->userid,
- showrealname ? uentp->realname : uentp->username,
+ uentp->username,
uentp->numlogins, uentp->numposts,
HAS_PERM(PERM_SEEULEVELS) ? permstr : "", ptr);
usercounter++;
@@ -1242,7 +1242,7 @@ u_list()
char genbuf[3];
setutmpmode(LAUSERS);
- showrealname = u_list_special = usercounter = 0;
+ u_list_special = usercounter = 0;
totalusers = SHM->number;
if (HAS_PERM(PERM_SEEULEVELS)) {
getdata(b_lines - 1, 0, "觀看 [1]特殊等級 (2)全部?",
@@ -1250,12 +1250,6 @@ u_list()
if (genbuf[0] != '2')
u_list_special = PERM_BASIC | PERM_CHAT | PERM_PAGE | PERM_POST | PERM_LOGINOK | PERM_BM;
}
- if (HAS_PERM(PERM_CHATROOM) || HAS_PERM(PERM_SYSOP)) {
- getdata(b_lines - 1, 0, "顯示 [1]真實姓名 (2)暱稱?",
- genbuf, 3, DOECHO);
- if (genbuf[0] != '2')
- showrealname = 1;
- }
u_list_CB(NULL);
if (passwd_apply(u_list_CB) == -1) {
outs(msg_nobody);