From 963b28383cccd5ae35847db27a6446cec2417bef Mon Sep 17 00:00:00 2001 From: scw Date: Fri, 21 May 2004 06:50:24 +0000 Subject: Angel ID hiding. Interface changing. git-svn-id: http://opensvn.csie.org/pttbbs/branches/scw.angel@2011 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 6 ++++++ mbbsd/talk.c | 1 + mbbsd/user.c | 5 +++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 345b9ad6..27abc777 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -241,6 +241,12 @@ void show_call_in(int save, int which) { char buf[200]; +#ifdef PLAY_ANGEL + if (save && currutmp->msgs[which].msgmode == MSG_TOANGEL) + snprintf(buf, sizeof(buf), "\033[1;37;46m★%s\033[37;45m %s \033[m", + currutmp->msgs[which].userid, currutmp->msgs[which].last_call_in); + else +#endif snprintf(buf, sizeof(buf), "\033[1;33;46m★%s\033[37;45m %s \033[m", currutmp->msgs[which].userid, currutmp->msgs[which].last_call_in); move(b_lines, 0); diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 63ce373a..32f6d10f 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2856,6 +2856,7 @@ NoAngelFound(const char* msg){ outs(msg); if (currutmp->mode != EDITING) outs(",請先在新手板上尋找答案或按 Ctrl-P 發問"); + clrtoeol(); refresh(); sleep(1); if (currutmp->mode != EDITING){ diff --git a/mbbsd/user.c b/mbbsd/user.c index 653e45c2..1cda684b 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -90,8 +90,9 @@ user_display(userec_t * u, int real) u->exmailbox, u->mobile, u->month, u->day, u->year % 100, u->mychicken.name); #ifdef PLAY_ANGEL - prints(" 小 天 使: %s\n", - u->myangel[0] ? u->myangel : "無"); + if (real) + prints(" 小 天 使: %s\n", + u->myangel[0] ? u->myangel : "無"); #endif prints(" 註冊日期: %s", ctime(&u->firstlogin)); prints(" 前次光臨: %s", ctime(&u->lastlogin)); -- cgit v1.2.3