diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-01-05 05:51:58 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-01-05 05:51:58 +0800 |
commit | 665bcd82a5627d9c4b690d02c8eaae06d1c058f7 (patch) | |
tree | 38be738716f2659365842c1442b8b05d1c0a08c1 | |
parent | 5fda87b53a5cb68eb4f36e3ba3f5783cb29745ab (diff) | |
download | pttbbs-665bcd82a5627d9c4b690d02c8eaae06d1c058f7.tar pttbbs-665bcd82a5627d9c4b690d02c8eaae06d1c058f7.tar.gz pttbbs-665bcd82a5627d9c4b690d02c8eaae06d1c058f7.tar.bz2 pttbbs-665bcd82a5627d9c4b690d02c8eaae06d1c058f7.tar.lz pttbbs-665bcd82a5627d9c4b690d02c8eaae06d1c058f7.tar.xz pttbbs-665bcd82a5627d9c4b690d02c8eaae06d1c058f7.tar.zst pttbbs-665bcd82a5627d9c4b690d02c8eaae06d1c058f7.zip |
fix the register bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3265 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/assess.c | 3 | ||||
-rw-r--r-- | mbbsd/passwd.c | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/mbbsd/assess.c b/mbbsd/assess.c index d6c92726..abaa77fb 100644 --- a/mbbsd/assess.c +++ b/mbbsd/assess.c @@ -20,9 +20,6 @@ int inc_##_attr(const char *userid, int num) \ userec_t xuser; \ int uid = getuser(userid, &xuser);\ if( uid > 0 ){ \ - userinfo_t *uinfo = search_ulist(uid); \ - if (uinfo != NULL) \ - inc(&uinfo->_attr, num); \ inc(&xuser._attr, num); \ passwd_update(uid, &xuser); \ return xuser._attr; }\ diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index f5f03ca5..b84ef7b3 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -76,8 +76,7 @@ passwd_update(int num, userec_t * buf) if (num < 1 || num > MAX_USERS) return -1; buf->money = moneyof(num); - pwdfd = currutmp->alerts; - if(usernum == num && (pwdfd & ALERT_PWD)) + if(usernum == num && ((pwdfd = currutmp->alerts) & ALERT_PWD)) { userec_t u; passwd_query(num, &u); |