summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/user.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c
index dc2c5db2..b27c6bc7 100644
--- a/pttbbs/mbbsd/user.c
+++ b/pttbbs/mbbsd/user.c
@@ -468,7 +468,7 @@ void Customize(void)
"DBCS �T��b���줸���ϥΦ�X(�h���@�r����)",
#endif
#ifdef PLAY_ANGEL
- "ANGEL (�p�Ѩϭ��w)�ϥηs�����٩I�s���]�w�ɭ�",
+ "ANGEL (�p�Ѩ�)�ҥηs�����٩I�s���]�w�ɭ�",
#endif
0,
};
@@ -489,6 +489,14 @@ void Customize(void)
/* print uflag options */
for (i = 0; masks1[i]; i++, ia++)
{
+#ifdef PLAY_ANGEL
+ // XXX dirty hack: ANGEL must be in end of list.
+ if (strstr(desc1[i], "ANGEL ") == desc1[i] &&
+ !HasUserPerm(PERM_ANGEL)) {
+ ia--;
+ continue;
+ }
+#endif
clrtoeol();
prints( ANSI_COLOR(1;36) "%c" ANSI_RESET
". %-*s%s\n",
@@ -517,6 +525,7 @@ void Customize(void)
"MIND �ثe���߱�",
mindbuf);
#ifdef PLAY_ANGEL
+ // TODO move this to Ctrl-U Ctrl-P.
if (HasUserPerm(PERM_ANGEL))
{
static const char *msgs[ANGELPAUSE_MODES] = {