summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-11 11:41:05 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-11 11:41:05 +0800
commit18c0b8510d37ed61adaab37638688aadfd877f4a (patch)
tree6321fe321d5ad5b2bfa244c778838416e9c3becb /mbbsd
parentad8c4dfd61c38ffdb734f95b752ded557e08f323 (diff)
downloadpttbbs-18c0b8510d37ed61adaab37638688aadfd877f4a.tar
pttbbs-18c0b8510d37ed61adaab37638688aadfd877f4a.tar.gz
pttbbs-18c0b8510d37ed61adaab37638688aadfd877f4a.tar.bz2
pttbbs-18c0b8510d37ed61adaab37638688aadfd877f4a.tar.lz
pttbbs-18c0b8510d37ed61adaab37638688aadfd877f4a.tar.xz
pttbbs-18c0b8510d37ed61adaab37638688aadfd877f4a.tar.zst
pttbbs-18c0b8510d37ed61adaab37638688aadfd877f4a.zip
typo in sample conf orz
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2828 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 17c22827..dd27545a 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1076,10 +1076,15 @@ _debug_testregcode()
buf, IDLEN+1, DOECHO);
if(buf[0])
{
- move(i, 0);
+ move(i++, 0);
+ i %= t_lines;
+ if(i == 0)
+ i = 1;
strcpy(cuser.userid, buf);
- prints("id: [%s], regcode: [%s]\n" ANSI_CLRTOEND,
+ prints("id: [%s], regcode: [%s]\n",
cuser.userid, getregcode(rcode));
+ move(i, 0);
+ clrtoeol();
}
} while (buf[0]);
strcpy(cuser.userid, myid);