diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-14 03:56:29 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-14 03:56:29 +0800 |
commit | 5f68d7e1a724af13aa4ead16da72bc91bd564e4d (patch) | |
tree | 22957646d9048859d9d0778fcb446abebce05201 /mbbsd | |
parent | 7bcbb8e866cb0c905ff777529f4c8c3721a192c7 (diff) | |
download | pttbbs-5f68d7e1a724af13aa4ead16da72bc91bd564e4d.tar pttbbs-5f68d7e1a724af13aa4ead16da72bc91bd564e4d.tar.gz pttbbs-5f68d7e1a724af13aa4ead16da72bc91bd564e4d.tar.bz2 pttbbs-5f68d7e1a724af13aa4ead16da72bc91bd564e4d.tar.lz pttbbs-5f68d7e1a724af13aa4ead16da72bc91bd564e4d.tar.xz pttbbs-5f68d7e1a724af13aa4ead16da72bc91bd564e4d.tar.zst pttbbs-5f68d7e1a724af13aa4ead16da72bc91bd564e4d.zip |
bugfix: some user will always stay in friends' friend list after logout
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2620 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/talk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 129f9b43..00ff1c83 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -282,7 +282,7 @@ logout_friend_online(userinfo_t * utmp) thefriend = (utmp->friend_online[my_friend_idx] & 0xFFFFFF); utmp->friend_online[my_friend_idx]=0; - if( !(0 <= thefriend && thefriend < MAX_ACTIVE) ) + if( !(0 <= thefriend && thefriend < USHM_SIZE) ) continue; ui = &SHM->uinfo[thefriend]; |