summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-05 17:14:40 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-05 17:14:40 +0800
commit3919b146ee0e5830511e8421a1cbe91d9ab86898 (patch)
treee9546646b6f9b064c81b4face5ddb51049ac9bb7
parent7ab1897759f9faaea285b81c5ec8258c5a75acb7 (diff)
downloadpttbbs-3919b146ee0e5830511e8421a1cbe91d9ab86898.tar
pttbbs-3919b146ee0e5830511e8421a1cbe91d9ab86898.tar.gz
pttbbs-3919b146ee0e5830511e8421a1cbe91d9ab86898.tar.bz2
pttbbs-3919b146ee0e5830511e8421a1cbe91d9ab86898.tar.lz
pttbbs-3919b146ee0e5830511e8421a1cbe91d9ab86898.tar.xz
pttbbs-3919b146ee0e5830511e8421a1cbe91d9ab86898.tar.zst
pttbbs-3919b146ee0e5830511e8421a1cbe91d9ab86898.zip
register
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1924 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/user.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index bd4ed6b8..82516613 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1117,6 +1117,9 @@ static char *isvalidcareer(char *career)
return "麻煩請加學校系所";
if (strcmp(career, "學生高中") == 0)
return "麻煩輸入學校名稱";
+#else
+ if( strlen(career) < 6 )
+ return "您的輸入不正確";
#endif
return NULL;
}
@@ -1262,6 +1265,10 @@ u_register(void)
"請按下任一鍵跳離後重新上站~ :)");
sethomefile(genbuf, cuser.userid, "justify.wait");
unlink(genbuf);
+ snprintf(cuser.justify, sizeof(cuser.justify),
+ "%s:%s:auto", phone, career);
+ sethomefile(genbuf, cuser.userid, "justify");
+ log_file(genbuf, LOG_CREAT, cuser.justify);
pressanykey();
u_exit("registed");
exit(0);