diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-04 14:52:14 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-04 14:52:14 +0800 |
commit | 7204388338e4e7445afd399a2e1c4947f86fbce3 (patch) | |
tree | acb927d31a747670a3ad1af593d537046581cb45 /mbbsd/mbbsd.c | |
parent | ff7b952f0b6628d4843bd0cf4ceb8e9efd7798aa (diff) | |
download | pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.gz pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.bz2 pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.lz pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.xz pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.zst pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.zip |
apply rafan's (rafan.bbs@ptt2.cc) big patch to s/username/nickname/g
turn off FOREIGN_REG by default in sample/pttbbs.conf
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2887 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 6f4faecc..d7876382 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -123,7 +123,7 @@ log_usies(const char *mode, const char *mesg) log_file(FN_USIES, LOG_CREAT | LOG_VF, "%s %s %-12s Stay:%d (%s)\n", Cdate(&now), mode, cuser.userid , - (int)(now - login_start_time) / 60, cuser.username); + (int)(now - login_start_time) / 60, cuser.nickname); else log_file(FN_USIES, LOG_CREAT | LOG_VF, "%s %s %-12s %s\n", @@ -497,7 +497,7 @@ multi_user_check(void) if (genbuf[0] != 'n') { if (pid > 0) kill(pid, SIGHUP); - log_usies("KICK ", cuser.username); + log_usies("KICK ", cuser.nickname); } else { if (search_ulistn(usernum, 3) != NULL) abort_bbs(0); /* Goodbye(); */ @@ -777,8 +777,8 @@ setup_utmp(int mode) uinfo.lastact = time(NULL); strlcpy(uinfo.userid, cuser.userid, sizeof(uinfo.userid)); //strlcpy(uinfo.realname, cuser.realname, sizeof(uinfo.realname)); - strlcpy(uinfo.username, cuser.username, sizeof(uinfo.username)); - strip_nonebig5(uinfo.username, sizeof(uinfo.username)); + strlcpy(uinfo.nickname, cuser.nickname, sizeof(uinfo.nickname)); + strip_nonebig5(uinfo.nickname, sizeof(uinfo.nickname)); strlcpy(uinfo.from, fromhost, sizeof(uinfo.from)); uinfo.five_win = cuser.five_win; uinfo.five_lose = cuser.five_lose; @@ -892,10 +892,10 @@ static void init_guest_info(void) "愛之味", "天上", "藍色珊瑚礁" }; i = login_start_time % 13; - snprintf(cuser.username, sizeof(cuser.username), + snprintf(cuser.nickname, sizeof(cuser.nickname), "海邊漂來的%s", nick[(int)i]); - strlcpy(currutmp->username, cuser.username, - sizeof(currutmp->username)); + strlcpy(currutmp->nickname, cuser.nickname, + sizeof(currutmp->nickname)); strlcpy(cuser.realname, name[(int)i], sizeof(cuser.realname)); strlcpy(cuser.address, addr[(int)i], sizeof(cuser.address)); cuser.sex = i % 8; |