summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/user.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 30fdc4de..5088fd27 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.6 2002/03/17 08:11:34 in2 Exp $ */
+/* $Id: user.c,v 1.7 2002/03/17 08:23:48 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -793,7 +793,9 @@ static int isvaildemail(char *email)
buf[ strlen(buf) - 1 ] = 0;
if( buf[0] == 'A' && strcmp(&buf[1], email) == 0 )
return 0;
- if( buf[0] == 'S' && strstr(&buf[1], email) )
+ if( buf[0] == 'P' && strstr(email, &buf[1]) )
+ return 0;
+ if( buf[0] == 'S' && strcmp(strstr(email, "@") + 1, &buf[1]) == 0 )
return 0;
}
fclose(fp);
@@ -864,13 +866,17 @@ static void toregister(char *email, char *genbuf, char *phone, char *career,
}
}
else{
+ char tmp[IDLEN + 1];
if( phone != NULL ){
sprintf(genbuf, "%s:%s:<Email>", phone, career);
strncpy(cuser.justify, genbuf, REGLEN);
sethomefile(buf, cuser.userid, "justify");
}
+ strcpy(tmp, cuser.userid);
+ strcpy(cuser.userid, "SYSOP");
sprintf(buf, "�z�b "BBSNAME" ���{�ҽX: %s", getregcode(genbuf));
bsmtp("etc/registermail", buf, email, 0);
+ strcpy(cuser.userid, tmp);
outs("\n\n\n�ڭ̧Y�N�H�X�{�ҫH (�i��n�·бz����T����)\n"
"�����z�i�H��ڻ{�ҫH���D���{�ҽX\n"
"��J�� (U)ser -> (R)egister ��N�i�H�������U");
@@ -909,7 +915,8 @@ int u_register(void)
memset(phone, 0, sizeof(phone));
if( cuser.year != 0 ){ /* �w�g�Ĥ@����L�F~ ^^" */
clear();
- move(1, 0);
+ stand_title("EMail�{��");
+ move(2, 0);
prints("%s(%s) �z�n�A�п�J�z���{�ҽX�ο�J 0���� E-Mail ",
cuser.userid, cuser.username);
inregcode[0] = 0;