diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-10 21:06:30 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-10 21:06:30 +0800 |
commit | cedb3a18a10f600e3caa20cb9e1966f1bcc53eb4 (patch) | |
tree | c5fdfb794403e118462f62d38a19ac3ea75741d2 | |
parent | 46d39667bcca9ba66d80dae1f7fa27acfe4c5f29 (diff) | |
download | pttbbs-cedb3a18a10f600e3caa20cb9e1966f1bcc53eb4.tar pttbbs-cedb3a18a10f600e3caa20cb9e1966f1bcc53eb4.tar.gz pttbbs-cedb3a18a10f600e3caa20cb9e1966f1bcc53eb4.tar.bz2 pttbbs-cedb3a18a10f600e3caa20cb9e1966f1bcc53eb4.tar.lz pttbbs-cedb3a18a10f600e3caa20cb9e1966f1bcc53eb4.tar.xz pttbbs-cedb3a18a10f600e3caa20cb9e1966f1bcc53eb4.tar.zst pttbbs-cedb3a18a10f600e3caa20cb9e1966f1bcc53eb4.zip |
- add more detail error log for admin's unum error
- kick users before changing userid
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4292 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/user.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 077a9d44..d20e6ff1 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/mbbsd/user.c @@ -564,6 +564,9 @@ uinfo_query(userec_t *u, int adminmode, int unum) int xuid = getuser(u->userid, &x); if (xuid != unum) { + move(b_lines-1, 0); clrtobol(); + prints(ANSI_COLOR(1;31) "錯誤資訊: unum=%d (lookup xuid=%d)" + ANSI_RESET "\n", unum, xuid); vmsg("系統錯誤: 使用者資料號碼 (unum) 不合。請至 " BN_BUGREPORT "報告。"); return; } @@ -1054,7 +1057,7 @@ uinfo_query(userec_t *u, int adminmode, int unum) } if (strcmp(u->userid, x.userid)) { char src[STRLEN], dst[STRLEN]; - + kick_all(u->userid); sethomepath(src, u->userid); sethomepath(dst, x.userid); Rename(src, dst); |