summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-07 21:28:18 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-07 21:28:18 +0800
commitab887ca36d723e3586660e5d0129b2c0bf230df8 (patch)
tree9d67b25463c81d52df3ad9bf8cfe929c860cd207 /mbbsd/user.c
parent65444f711e64a233e3a12ffc1afa6a416f6b85e3 (diff)
downloadpttbbs-ab887ca36d723e3586660e5d0129b2c0bf230df8.tar
pttbbs-ab887ca36d723e3586660e5d0129b2c0bf230df8.tar.gz
pttbbs-ab887ca36d723e3586660e5d0129b2c0bf230df8.tar.bz2
pttbbs-ab887ca36d723e3586660e5d0129b2c0bf230df8.tar.lz
pttbbs-ab887ca36d723e3586660e5d0129b2c0bf230df8.tar.xz
pttbbs-ab887ca36d723e3586660e5d0129b2c0bf230df8.tar.zst
pttbbs-ab887ca36d723e3586660e5d0129b2c0bf230df8.zip
Move PERM_NOOUTMAIL from userec_t.userlevel to userec_t.uflag2
and fill the space with PERM_ANGEL. git-svn-id: http://opensvn.csie.org/pttbbs/branches/scw.angel@1929 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c27
1 files changed, 22 insertions, 5 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 4a531d10..8ca757f7 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -229,15 +229,23 @@ static void Customize(void)
move(4, 0);
prints("%-30s%10s\n", "A. 水球模式",
wm[(cuser.uflag2 & WATER_MASK)]);
- prints("%-30s%10s\n", "B. 接受站外信",
- ((cuser.userlevel & PERM_NOOUTMAIL) ? "否" : "是"));
+ prints("%-30s%10s\n", "B. 接受站外信", REJECT_OUTTAMAIL ? "否" : "是");
prints("%-30s%10s\n", "C. 新板自動進我的最愛",
((cuser.uflag2 & FAVNEW_FLAG) ? "是" : "否"));
prints("%-30s%10s\n", "D. 目前的心情", mindbuf);
prints("%-30s%10s\n", "E. 高亮度顯示我的最愛",
((cuser.uflag2 & FAVNOHILIGHT) ? "否" : "是"));
- getdata(b_lines - 1, 0, "請按 [A-E] 切換設定,按 [Return] 結束:",
- ans, 3, DOECHO);
+#ifdef PLAY_ANGEL
+ if( HAS_PERM(PERM_ANGEL) ){
+ prints("%-30s%10s\n", "F. 接受小主人詢問",
+ ((cuser.uflag2 & BEING_ANGEL) ? "是" : "否"));
+ getdata(b_lines - 1, 0, "請按 [A-F] 切換設定,按 [Return] 結束:",
+ ans, 3, DOECHO);
+ }else
+#else
+ getdata(b_lines - 1, 0, "請按 [A-E] 切換設定,按 [Return] 結束:",
+ ans, 3, DOECHO);
+#endif
switch( ans[0] ){
case 'A':
@@ -251,8 +259,9 @@ static void Customize(void)
break;
case 'B':
case 'b':
- cuser.userlevel ^= PERM_NOOUTMAIL;
+ cuser.uflag2 ^= REJ_OUTTAMAIL;
break;
+
case 'C':
case 'c':
cuser.uflag2 ^= FAVNEW_FLAG;
@@ -275,6 +284,14 @@ static void Customize(void)
case 'e':
cuser.uflag2 ^= FAVNOHILIGHT;
break;
+#ifdef PLAY_ANGEL
+ case 'F':
+ case 'f':
+ if( HAS_PERM(PERM_ANGEL) ){
+ cuser.uflag2 ^= BEING_ANGEL;
+ break;
+ }
+#endif
default:
done = 1;
}