diff options
-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); |