diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-31 00:50:34 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-31 00:50:34 +0800 |
commit | 98acb18b8e6b7d7bfdd49809774e61328ef7f7a5 (patch) | |
tree | e1f04943a2f84e4755ee13de50aa1f6acde2d951 /mbbsd/xyz.c | |
parent | eb94f525ab29b0c82e70fa895d2e343047fefd26 (diff) | |
download | pttbbs-98acb18b8e6b7d7bfdd49809774e61328ef7f7a5.tar pttbbs-98acb18b8e6b7d7bfdd49809774e61328ef7f7a5.tar.gz pttbbs-98acb18b8e6b7d7bfdd49809774e61328ef7f7a5.tar.bz2 pttbbs-98acb18b8e6b7d7bfdd49809774e61328ef7f7a5.tar.lz pttbbs-98acb18b8e6b7d7bfdd49809774e61328ef7f7a5.tar.xz pttbbs-98acb18b8e6b7d7bfdd49809774e61328ef7f7a5.tar.zst pttbbs-98acb18b8e6b7d7bfdd49809774e61328ef7f7a5.zip |
add mmap to cuser get ride of passwd_update
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/xyz.c')
-rw-r--r-- | mbbsd/xyz.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mbbsd/xyz.c b/mbbsd/xyz.c index e0b850b5..1d83fd41 100644 --- a/mbbsd/xyz.c +++ b/mbbsd/xyz.c @@ -179,7 +179,7 @@ note() } notedata_t; notedata_t myitem; - if (cuser.money < 5) { + if (cuser->money < 5) { outmsg("\033[1;41m 哎呀! 要投五銀才能留言...沒錢耶..\033[m"); clrtoeol(); refresh(); @@ -201,8 +201,8 @@ note() return 0; } while (buf[0] == 'e'); demoney(-5); - strcpy(myitem.userid, cuser.userid); - strncpy(myitem.username, cuser.username, 18); + strcpy(myitem.userid, cuser->userid); + strncpy(myitem.username, cuser->username, 18); myitem.username[18] = '\0'; myitem.date = now; @@ -360,7 +360,7 @@ Goodbye() return 0; movie(999); - if (cuser.userlevel) { + if (cuser->userlevel) { getdata(b_lines - 1, 0, "(G)隨風而逝 (M)托夢站長 (N)酸甜苦辣流言板?[G] ", genbuf, 3, LCECHO); @@ -373,8 +373,8 @@ Goodbye() clear(); prints("\033[1;36m親愛的 \033[33m%s(%s)\033[36m,別忘了再度光臨\033[45;33m" " %s \033[40;36m!\n以下是您在站內的註冊資料:\033[0m\n", - cuser.userid, cuser.username, BBSName); - user_display(&cuser, 0); + cuser->userid, cuser->username, BBSName); + user_display(cuser, 0); pressanykey(); more("etc/Logout", NA); |