summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-10 21:06:30 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-10 21:06:30 +0800
commit761af8de67cbc5cf1854d0c84b9b8f9384be4aaf (patch)
tree88553043606e7b695c661bc8a00851824874df40 /mbbsd
parentec550180fc86a91255b786e446399143f5c1b6ff (diff)
downloadpttbbs-761af8de67cbc5cf1854d0c84b9b8f9384be4aaf.tar
pttbbs-761af8de67cbc5cf1854d0c84b9b8f9384be4aaf.tar.gz
pttbbs-761af8de67cbc5cf1854d0c84b9b8f9384be4aaf.tar.bz2
pttbbs-761af8de67cbc5cf1854d0c84b9b8f9384be4aaf.tar.lz
pttbbs-761af8de67cbc5cf1854d0c84b9b8f9384be4aaf.tar.xz
pttbbs-761af8de67cbc5cf1854d0c84b9b8f9384be4aaf.tar.zst
pttbbs-761af8de67cbc5cf1854d0c84b9b8f9384be4aaf.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/pttbbs@4292 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 077a9d44..d20e6ff1 100644
--- a/mbbsd/user.c
+++ b/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);