summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-25 23:30:43 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-25 23:30:43 +0800
commit2f3e8d3cb0c654b676c5bb9f00f9107187864a6d (patch)
tree7a6b5e3c284ebf99d5c68659f9c99b4814448501 /mbbsd
parent00f1e5a84015dac18d4b66f51cd0284afb552be5 (diff)
downloadpttbbs-2f3e8d3cb0c654b676c5bb9f00f9107187864a6d.tar
pttbbs-2f3e8d3cb0c654b676c5bb9f00f9107187864a6d.tar.gz
pttbbs-2f3e8d3cb0c654b676c5bb9f00f9107187864a6d.tar.bz2
pttbbs-2f3e8d3cb0c654b676c5bb9f00f9107187864a6d.tar.lz
pttbbs-2f3e8d3cb0c654b676c5bb9f00f9107187864a6d.tar.xz
pttbbs-2f3e8d3cb0c654b676c5bb9f00f9107187864a6d.tar.zst
pttbbs-2f3e8d3cb0c654b676c5bb9f00f9107187864a6d.zip
* give warning to admins who is trying to modify his own account...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4775 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index a54dd4bb..822b09a7 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -592,6 +592,10 @@ uinfo_query(userec_t *u, int adminmode, int unum)
if (vans("使用者目前正在線上,修改資料會先踢下線。確定要繼續嗎? (y/N): ")
!= 'y')
return;
+ if (unum == usernum &&
+ vans("您正試圖修改自己的帳號;這可能會造成帳號損毀,確定要繼續嗎? (y/N): ")
+ != 'y')
+ return;
}
switch (ans) {
case 'c':