summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index e12fa9be..2788aebc 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -514,6 +514,7 @@ uinfo_query(userec_t * u, int real, int unum)
getdata_buf(i++, 0, "最近光臨機器:",
x.lasthost, sizeof(x.lasthost), DOECHO);
+ // XXX 一變數不要多用途亂用 "fail"
snprintf(genbuf, sizeof(genbuf), "%d", x.numlogins);
if (getdata_str(i++, 0, "上線次數:", buf, 10, DOECHO, genbuf))
if ((fail = atoi(buf)) >= 0)
@@ -736,6 +737,7 @@ uinfo_query(userec_t * u, int real, int unum)
char msg[200];
clrtobot();
clear();
+ // XXX 此時斷線則修改資料沒 log
while (!getdata(5, 0, "請輸入理由以示負責:",
reason, sizeof(reason), DOECHO));