From 747e273a246da13dbf14c22f49a0cb80ed8f4fbb Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 31 Mar 2004 01:07:48 +0000 Subject: cuser debug git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1643 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/admin.c | 2 -- 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) -- cgit v1.2.3