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 /mbbsd/passwd.c | |
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
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r-- | mbbsd/passwd.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |