diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-14 12:11:39 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-14 12:11:39 +0800 |
commit | 0ca87419c28ebc750934786cde95c57ad840c548 (patch) | |
tree | 3311c48db005564918521dd23d6ddcfb0c265463 | |
parent | 07dc36e45e5ab7862625bff5f73b51b44a710c30 (diff) | |
download | pttbbs-0ca87419c28ebc750934786cde95c57ad840c548.tar pttbbs-0ca87419c28ebc750934786cde95c57ad840c548.tar.gz pttbbs-0ca87419c28ebc750934786cde95c57ad840c548.tar.bz2 pttbbs-0ca87419c28ebc750934786cde95c57ad840c548.tar.lz pttbbs-0ca87419c28ebc750934786cde95c57ad840c548.tar.xz pttbbs-0ca87419c28ebc750934786cde95c57ad840c548.tar.zst pttbbs-0ca87419c28ebc750934786cde95c57ad840c548.zip |
* fix: money in cuser was not updated / sync to shm after sync_update...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4608 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/passwd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index 1b55952a..d73b5dec 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -32,10 +32,12 @@ passwd_sync_update(int num, userec_t * buf) if (num < 1 || num > MAX_USERS) return -1; + // money update should be done before everything. + buf->money = moneyof(num); + if(usernum == num && currutmp && ((alerts = currutmp->alerts) & ALERT_PWD)) { userec_t u; - buf->money = moneyof(num); if (passwd_sync_query(num, &u) != 0) return -1; |