diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/user.c | 5 |
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 |