diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-31 09:07:48 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-31 09:07:48 +0800 |
commit | 747e273a246da13dbf14c22f49a0cb80ed8f4fbb (patch) | |
tree | f2cf599deb4611ac45f22ab400029ad33b423982 | |
parent | b8b7a9ed5892fb3d59212f163c5c4eb8ad0f0790 (diff) | |
download | pttbbs-747e273a246da13dbf14c22f49a0cb80ed8f4fbb.tar pttbbs-747e273a246da13dbf14c22f49a0cb80ed8f4fbb.tar.gz pttbbs-747e273a246da13dbf14c22f49a0cb80ed8f4fbb.tar.bz2 pttbbs-747e273a246da13dbf14c22f49a0cb80ed8f4fbb.tar.lz pttbbs-747e273a246da13dbf14c22f49a0cb80ed8f4fbb.tar.xz pttbbs-747e273a246da13dbf14c22f49a0cb80ed8f4fbb.tar.zst pttbbs-747e273a246da13dbf14c22f49a0cb80ed8f4fbb.zip |
cuser debug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1643 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/admin.c | 2 | ||||
-rw-r--r-- | mbbsd/passwd.c | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 7af794c7..4f45f181 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -2,7 +2,6 @@ #include "bbs.h" /* 進站水球宣傳 */ - int m_loginmsg() { @@ -259,7 +258,6 @@ setup_man(boardheader_t * board) mkdir(genbuf, 0755); } - int m_mod_board(char *bname) { diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index 1a980e35..182040c8 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -57,7 +57,12 @@ passwd_update_money(int num) /* update money only */ if (num < 1 || num > MAX_USERS) return -1; - + if (num == usernum) + { + cuser->money = money; + return 0; + } + sethomefile(path, getuserid(num), ".passwd"); if ((pwdfd = open(path, O_WRONLY)) < 0) |