summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-01 02:29:54 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-01 02:29:54 +0800
commit5d7905cefdbc8b65c2c8ede660b49f11673d089d (patch)
treea92f2d0a3f74318f0904281f3209cfea14389476 /mbbsd
parente755863dc764c11e2ee28daf05df6f53bf9be0f4 (diff)
downloadpttbbs-5d7905cefdbc8b65c2c8ede660b49f11673d089d.tar
pttbbs-5d7905cefdbc8b65c2c8ede660b49f11673d089d.tar.gz
pttbbs-5d7905cefdbc8b65c2c8ede660b49f11673d089d.tar.bz2
pttbbs-5d7905cefdbc8b65c2c8ede660b49f11673d089d.tar.lz
pttbbs-5d7905cefdbc8b65c2c8ede660b49f11673d089d.tar.xz
pttbbs-5d7905cefdbc8b65c2c8ede660b49f11673d089d.tar.zst
pttbbs-5d7905cefdbc8b65c2c8ede660b49f11673d089d.zip
- enable angel to temporary disable pager again.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4054 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/talk.c2
-rw-r--r--mbbsd/user.c21
2 files changed, 21 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index e3134f59..7b7c6d71 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -3607,7 +3607,7 @@ TalkToAngel(){
}
uent = search_ulist_userid(cuser.myangel);
- if (uent == 0 || he_reject_me(uent)){
+ if (uent == 0 || uent->angelpause || he_reject_me(uent)){
AngelNotOnline();
return;
}
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 90959c00..88e1fffb 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -426,6 +426,15 @@ void Customize(void)
'1' + iax++,
"目前的心情",
mindbuf);
+#ifdef PLAY_ANGEL
+ if (HasUserPerm(PERM_ANGEL))
+ {
+ prints("%c. %-40s%s\n",
+ '1' + iax++,
+ "開放小主人詢問",
+ (currutmp->angelpause ? "否" : "是"));
+ }
+#endif // PLAY_ANGEL
}
/* input */
@@ -482,7 +491,17 @@ void Customize(void)
}
continue;
}
-
+#ifdef PLAY_ANGEL
+ if( HasUserPerm(PERM_ANGEL) ){
+ if (key == iax-1)
+ {
+ // SwitchBeingAngel();
+ currutmp->angelpause = !currutmp->angelpause;
+ dirty = 1;
+ continue;
+ }
+ }
+#endif //PLAY_ANGEL
}
grayout(1, b_lines-2, GRAYOUT_DARK);