summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/user.c9
-rw-r--r--sample/pttbbs.conf2
2 files changed, 8 insertions, 3 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);
diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf
index f95f38e9..a66a3812 100644
--- a/sample/pttbbs.conf
+++ b/sample/pttbbs.conf
@@ -12,7 +12,7 @@
/* 為減少假 email 利用 source 算出註冊碼, 我們改用新的公式。
* 下面這個是起始的種子值,請改成任意字串 (1~13 chars) */
-#define REGISTER_MAGIC "pttbbs"
+#define REGCODE_MAGIC "pttbbs"
/* 定義系統資訊 */
#define BBSUSER "bbs"