diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-12 12:06:35 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-12 12:06:35 +0800 |
commit | f3915017e371d8d4e2fcf1870b7bcf3cae6e2c4e (patch) | |
tree | e7aa665be81bb8cf1e6cc9a7ece0be27aa22cff7 | |
parent | db850c27b703e40fae54fc3f82c96ae191746952 (diff) | |
download | pttbbs-f3915017e371d8d4e2fcf1870b7bcf3cae6e2c4e.tar pttbbs-f3915017e371d8d4e2fcf1870b7bcf3cae6e2c4e.tar.gz pttbbs-f3915017e371d8d4e2fcf1870b7bcf3cae6e2c4e.tar.bz2 pttbbs-f3915017e371d8d4e2fcf1870b7bcf3cae6e2c4e.tar.lz pttbbs-f3915017e371d8d4e2fcf1870b7bcf3cae6e2c4e.tar.xz pttbbs-f3915017e371d8d4e2fcf1870b7bcf3cae6e2c4e.tar.zst pttbbs-f3915017e371d8d4e2fcf1870b7bcf3cae6e2c4e.zip |
stupid
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@840 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/user.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index de8cc761..6ca5e408 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.58 2003/05/11 07:29:43 victor Exp $ */ +/* $Id: user.c,v 1.59 2003/05/12 04:06:35 victor Exp $ */ #include "bbs.h" static char *sex[8] = { @@ -938,11 +938,7 @@ toregister(char *email, char *genbuf, char *phone, char *career, char fore, if (phone[0] != 0) { fn = fopen(buf, "w"); assert(fn); - fprintf(fn, "%s%s\n%s\n%s\n%s\n%s\n%s\n", -#ifdef FOREIGN_REG - fore & FOREIGN ? "#foreign\n" : -#endif - "", + fprintf(fn, "%s\n%s\n%s\n%s\n%s\n%s\n", phone, career, ident, rname, addr, mobile); fclose(fn); } @@ -1168,10 +1164,6 @@ u_register(void) sethomefile(genbuf, cuser.userid, "justify.wait"); if ((fn = fopen(genbuf, "r"))) { fgets(phone, 21, fn); - if(strcmp(phone, "#foreign") == 0){ - fore[0] = 'y'; fore[1] = '\n'; - fgets(phone, 21, fn); - } phone[strlen(phone) - 1] = 0; fgets(career, 41, fn); career[strlen(career) - 1] = 0; |