summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:01:04 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:01:04 +0800
commitaf86ff908656d1b16a60704d80810ec5d2101726 (patch)
treec7f043c593e9ab13763af6230261374f50947625 /mbbsd/user.c
parent9398b4724f1e4dd166ce96ce83fe819606a1727b (diff)
downloadpttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar
pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.gz
pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.bz2
pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.lz
pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.xz
pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.zst
pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.zip
comment on bad code
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2639 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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));