summaryrefslogtreecommitdiffstats
path: root/mbbsd/register.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-21 04:28:21 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-21 04:28:21 +0800
commit80d6431f5d2fa48f925712ccd98c1983404e7ee9 (patch)
tree6411ae9d890ba61413664da1f37f468259f4281c /mbbsd/register.c
parent82664ae2ecc5db24c614f7a625e859975f55a6b5 (diff)
downloadpttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.gz
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.bz2
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.lz
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.xz
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.tar.zst
pttbbs-80d6431f5d2fa48f925712ccd98c1983404e7ee9.zip
revert cuser from pointer to buffer.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r--mbbsd/register.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c
index 7c7f4bf8..7e76e897 100644
--- a/mbbsd/register.c
+++ b/mbbsd/register.c
@@ -306,33 +306,33 @@ check_register()
stand_title("請詳細填寫個人資料");
- while (strlen(cuser->username) < 2)
- getdata(2, 0, "綽號暱稱:", cuser->username,
- sizeof(cuser->username), DOECHO);
+ while (strlen(cuser.username) < 2)
+ getdata(2, 0, "綽號暱稱:", cuser.username,
+ sizeof(cuser.username), DOECHO);
- for (ptr = cuser->username; *ptr; ptr++) {
+ for (ptr = cuser.username; *ptr; ptr++) {
if (*ptr == 9) /* TAB convert */
*ptr = ' ';
}
- while (strlen(cuser->realname) < 4)
- getdata(4, 0, "真實姓名:", cuser->realname,
- sizeof(cuser->realname), DOECHO);
+ while (strlen(cuser.realname) < 4)
+ getdata(4, 0, "真實姓名:", cuser.realname,
+ sizeof(cuser.realname), DOECHO);
- while (strlen(cuser->address) < 8)
- getdata(6, 0, "聯絡地址:", cuser->address,
- sizeof(cuser->address), DOECHO);
+ while (strlen(cuser.address) < 8)
+ getdata(6, 0, "聯絡地址:", cuser.address,
+ sizeof(cuser.address), DOECHO);
/*
- * if(!strchr(cuser->email, '@')) { bell(); move(t_lines - 4, 0); prints("
+ * if(!strchr(cuser.email, '@')) { bell(); move(t_lines - 4, 0); prints("
* 您的權益,請填寫真實的 E-mail address," "以資確認閣下身份,\n" "
* 033[44muser@domain_name\033[0m 或 \033[44muser"
* "@\\[ip_number\\]\033[0m。\n\n" "※ 如果您真的沒有 E-mail, turn]
* 即可。");
*
- * do { getdata(8, 0, "電子信箱:", cuser->email, sizeof(cuser->email),
- * DOECHO); if(!cuser->email[0]) sprintf(cuser->email, "%s%s",
- * cuser->userid, str_mail_address); } while(!strchr(cuser->email, '@'));
+ * do { getdata(8, 0, "電子信箱:", cuser.email, sizeof(cuser->email),
+ * DOECHO); if(!cuser.email[0]) sprintf(cuser->email, "%s%s",
+ * cuser.userid, str_mail_address); } while(!strchr(cuser->email, '@'));
*
* } */
if (!HAS_PERM(PERM_SYSOP)) {
@@ -344,8 +344,8 @@ check_register()
u_register();
#ifdef NEWUSER_LIMIT
- if (cuser->lastlogin - cuser->firstlogin < 3 * 86400)
- cuser->userlevel &= ~PERM_POST;
+ if (cuser.lastlogin - cuser->firstlogin < 3 * 86400)
+ cuser.userlevel &= ~PERM_POST;
more("etc/newuser", YEA);
#endif
}