summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-05-16 23:27:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-05-16 23:27:17 +0800
commit8992391472b3533826cfedb32b2198b1e7a66256 (patch)
treec8a484ac8fff248ee3c4b2e738af5bec6d9d8bb6 /mbbsd
parent4f8dd4edf77df7dbb0fb075b620d6b1727bd6b9d (diff)
downloadpttbbs-8992391472b3533826cfedb32b2198b1e7a66256.tar
pttbbs-8992391472b3533826cfedb32b2198b1e7a66256.tar.gz
pttbbs-8992391472b3533826cfedb32b2198b1e7a66256.tar.bz2
pttbbs-8992391472b3533826cfedb32b2198b1e7a66256.tar.lz
pttbbs-8992391472b3533826cfedb32b2198b1e7a66256.tar.xz
pttbbs-8992391472b3533826cfedb32b2198b1e7a66256.tar.zst
pttbbs-8992391472b3533826cfedb32b2198b1e7a66256.zip
Registeration, let's go English.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2723 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index b8fc5d77..83971b7d 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -994,6 +994,9 @@ static char *
getregcode(char *buf)
{
strcpy(buf, crypt(cuser.userid, "02"));
+ /* hack to prevent trailing dots */
+ if (buf[strlen(buf)-1] == '.')
+ buf[strlen(buf)-1] = 'd';
return buf;
}
@@ -1130,7 +1133,7 @@ toregister(char *email, char *genbuf, char *phone, char *career,
sethomefile(buf, cuser.userid, "justify");
}
snprintf(buf, sizeof(buf),
- "您在 " BBSNAME " 的認證碼: %s", getregcode(genbuf));
+ " " BBSENAME " - [ %s ]", getregcode(genbuf));
strlcpy(tmp, cuser.userid, sizeof(tmp));
strlcpy(cuser.userid, str_sysop, sizeof(cuser.userid));
#ifdef HAVEMOBILE