diff options
Diffstat (limited to 'mbbsd')
-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) |