summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-02 14:41:31 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-02 14:41:31 +0800
commit702edad799fc813d84a29673de87d7e58854ed39 (patch)
tree4c5792a97bb89ea4161c6a693ac6b7c29df64f50 /mbbsd/user.c
parentc9def28ad0172a5066e63bef771cfd1c325a9e40 (diff)
downloadpttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.gz
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.bz2
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.lz
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.xz
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.zst
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.zip
- angel system: extend pager modes to 3 types (accept, reject new, reject all)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4064 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 29937606..fb158ea0 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -429,10 +429,15 @@ void Customize(void)
#ifdef PLAY_ANGEL
if (HasUserPerm(PERM_ANGEL))
{
+ static const char *msgs[ANGELPAUSE_MODES] = {
+ "開放 (接受所有小主人發問)",
+ "停收 (只接受已回應過的小主人的問題)",
+ "關閉 (停止接受所有小主人的問題)",
+ };
prints("%c. %-40s%s\n",
'1' + iax++,
- "開放小主人詢問",
- (currutmp->angelpause ? "否" : "是"));
+ "小天使神諭呼叫器",
+ msgs[currutmp->angelpause % ANGELPAUSE_MODES]);
}
#endif // PLAY_ANGEL
}
@@ -495,9 +500,8 @@ void Customize(void)
if( HasUserPerm(PERM_ANGEL) ){
if (key == iax-1)
{
- // SwitchBeingAngel();
- currutmp->angelpause = !currutmp->angelpause;
- // dirty = 1; // pure utmp change can prevent pw dirty
+ angel_toggle_pause();
+ // dirty = 1; // pure utmp change does not need pw dirty
continue;
}
}