summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-06 22:31:41 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-06 22:31:41 +0800
commitb35ae20a364942ab97ff2d53226f613518fc07eb (patch)
treeed7a3e8ee3df81d3e7c8d5c432f8a14706ad10f6 /mbbsd/user.c
parente2edcb13a0eb21598f99ecc7a4e2627aa1c79bae (diff)
downloadpttbbs-b35ae20a364942ab97ff2d53226f613518fc07eb.tar
pttbbs-b35ae20a364942ab97ff2d53226f613518fc07eb.tar.gz
pttbbs-b35ae20a364942ab97ff2d53226f613518fc07eb.tar.bz2
pttbbs-b35ae20a364942ab97ff2d53226f613518fc07eb.tar.lz
pttbbs-b35ae20a364942ab97ff2d53226f613518fc07eb.tar.xz
pttbbs-b35ae20a364942ab97ff2d53226f613518fc07eb.tar.zst
pttbbs-b35ae20a364942ab97ff2d53226f613518fc07eb.zip
- user/chicken: enable sysop toggle chicken-death
- mail: UI message finetune, prevent 'mail-folder' for non-authorized users git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3970 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 9c686b24..c077280a 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -554,7 +554,7 @@ uinfo_query(userec_t *u, int adminmode, int unum)
memcpy(&x, u, sizeof(userec_t));
ans = getans(adminmode ?
- "(1)改資料(2)密碼(3)權限(4)砍帳號(5)改ID(7)審判(M)信箱 [0]結束 " :
+ "(1)改資料(2)密碼(3)權限(4)砍帳號(5)改ID(6)寵物(7)審判(M)信箱 [0]結束 " :
"請選擇 (1)修改資料 (2)設定密碼 (M)修改信箱 (C) 個人化設定 ==> [0]結束 ");
if (ans > '2' && ans != 'm' && ans != 'c' && !adminmode)
@@ -948,6 +948,9 @@ uinfo_query(userec_t *u, int adminmode, int unum)
strlcpy(x.userid, genbuf, sizeof(x.userid));
}
break;
+ case '6':
+ chicken_toggle_death(x.userid);
+ break;
default:
return;
}