diff options
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index a5763506..a15cfe8d 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.8 2002/03/17 08:37:15 in2 Exp $ */ +/* $Id: user.c,v 1.9 2002/03/18 06:02:03 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -835,12 +835,13 @@ static void toregister(char *email, char *genbuf, char *phone, char *career, " �п�J�z�� E-Mail , �z�|����ڭ̱H�X�t���{�ҽX���H��\n" " ����Ш� (U)ser => (R)egister ��J, �Y�i�q�L�{��\n" "\n" - " 2.�z�Y�S�� E-Mail , �п�J 0 ,\n" + " 2.�z�Y�S�� E-Mail , �п�J x ,\n" " �ڭ̷|�ѯ����˦ۼf�ֱz�����U���\n"); while( 1 ){ email[0] = 0; getfield(10, "�����{�ҥ�", "E-Mail Address", email, 50); - if( email[0] == 0 || email[0] == '0' || isvaildemail(email) ) + if( email[0] == 0 || strcmp(email, "x") == 0 || + strcmp(email, "X") == 0 || isvaildemail(email) ) break; else{ move(17, 0); @@ -849,7 +850,7 @@ static void toregister(char *email, char *genbuf, char *phone, char *career, } if( email[0] == 0 ) /* �U���A�� */ return; - else if( email[0] == '0' ){ /* ��ʻ{�� */ + else if( email[0] == 'x' || email[0] == 'X' ){ /* ��ʻ{�� */ if ((fn = fopen(fn_register, "a"))) { now = time(NULL); fprintf(fn, "num: %d, %s", usernum, ctime(&now)); @@ -917,7 +918,7 @@ int u_register(void) clear(); stand_title("EMail�{��"); move(2, 0); - prints("%s(%s) �z�n�A�п�J�z���{�ҽX�ο�J 0���� E-Mail ", + prints("%s(%s) �z�n�A�п�J�z���{�ҽX�ο�J x���� E-Mail ", cuser.userid, cuser.username); inregcode[0] = 0; getdata(10, 0, "�z���{�ҽX: ", inregcode, 45, DOECHO); @@ -925,7 +926,9 @@ int u_register(void) int unum; if( (unum = getuser(cuser.userid)) == 0 ){ outs("�t�ο��~�A�d�L���H\n\n"); + pressanykey(); u_exit("getuser error"); + exit(0); } mail_muser(cuser, "[���U���\\�o]", "etc/registeredmail"); cuser.userlevel |= (PERM_LOGINOK | PERM_POST); @@ -937,7 +940,7 @@ int u_register(void) u_exit("registed"); exit(0); return QUIT; - } else if( strcmp(inregcode, "0") != 0 ){ + } else if( strcmp(inregcode, "x")!=0 && strcmp(inregcode, "X")!=0 ){ outs("�{�ҽX���~\n"); pressanykey(); } |