From 2f3e8d3cb0c654b676c5bb9f00f9107187864a6d Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 25 Aug 2009 15:30:43 +0000 Subject: * 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 --- mbbsd/user.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mbbsd') 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': -- cgit v1.2.3