summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
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);