summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-02 14:44:44 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-02 14:44:44 +0800
commite0bbefae19d6a7a39316873ec1afffb1ed9f8094 (patch)
tree4057388d6ed8b8d2b6111be5f362910f518a53ed
parentf7935bb3e10d5e3e7a3483f3d0ed4b1adccb5581 (diff)
downloadpttbbs-e0bbefae19d6a7a39316873ec1afffb1ed9f8094.tar
pttbbs-e0bbefae19d6a7a39316873ec1afffb1ed9f8094.tar.gz
pttbbs-e0bbefae19d6a7a39316873ec1afffb1ed9f8094.tar.bz2
pttbbs-e0bbefae19d6a7a39316873ec1afffb1ed9f8094.tar.lz
pttbbs-e0bbefae19d6a7a39316873ec1afffb1ed9f8094.tar.xz
pttbbs-e0bbefae19d6a7a39316873ec1afffb1ed9f8094.tar.zst
pttbbs-e0bbefae19d6a7a39316873ec1afffb1ed9f8094.zip
fix register bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@273 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 54aa5dee..89ebef5f 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.19 2002/05/30 10:21:35 in2 Exp $ */
+/* $Id: user.c,v 1.20 2002/06/02 06:44:44 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -853,7 +853,7 @@ static void toregister(char *email, char *genbuf, char *phone, char *career,
}
}
strncpy(cuser.email, email, sizeof(cuser.email));
- if( email[0] == 'x' || email[0] == 'X' ){ /* 手動認證 */
+ if( strcasecmp(email, "x") == 0 ){ /* 手動認證 */
if ((fn = fopen(fn_register, "a"))) {
fprintf(fn, "num: %d, %s", usernum, ctime(&now));
fprintf(fn, "uid: %s\n", cuser.userid);