summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-21 14:50:24 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-21 14:50:24 +0800
commit963b28383cccd5ae35847db27a6446cec2417bef (patch)
tree80288104211756785aeca2fba534ffc9b27fe1c6
parent7b6f58be52d4a79a3020098a95ca05a536d881c0 (diff)
downloadpttbbs-963b28383cccd5ae35847db27a6446cec2417bef.tar
pttbbs-963b28383cccd5ae35847db27a6446cec2417bef.tar.gz
pttbbs-963b28383cccd5ae35847db27a6446cec2417bef.tar.bz2
pttbbs-963b28383cccd5ae35847db27a6446cec2417bef.tar.lz
pttbbs-963b28383cccd5ae35847db27a6446cec2417bef.tar.xz
pttbbs-963b28383cccd5ae35847db27a6446cec2417bef.tar.zst
pttbbs-963b28383cccd5ae35847db27a6446cec2417bef.zip
Angel ID hiding. Interface changing.
git-svn-id: http://opensvn.csie.org/pttbbs/branches/scw.angel@2011 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/mbbsd.c6
-rw-r--r--mbbsd/talk.c1
-rw-r--r--mbbsd/user.c5
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));