diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-29 22:07:28 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-29 22:07:28 +0800 |
commit | 6269d4e1eb46dae61c687611e46de32201821635 (patch) | |
tree | 4dca9702e1f0975b36bf2d480fb7c1e6a032c0fb | |
parent | 827437d1fa167f749886e233bf87a38629a99db2 (diff) | |
download | pttbbs-6269d4e1eb46dae61c687611e46de32201821635.tar pttbbs-6269d4e1eb46dae61c687611e46de32201821635.tar.gz pttbbs-6269d4e1eb46dae61c687611e46de32201821635.tar.bz2 pttbbs-6269d4e1eb46dae61c687611e46de32201821635.tar.lz pttbbs-6269d4e1eb46dae61c687611e46de32201821635.tar.xz pttbbs-6269d4e1eb46dae61c687611e46de32201821635.tar.zst pttbbs-6269d4e1eb46dae61c687611e46de32201821635.zip |
anti id spammer
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2737 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/talk.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 9769a472..f7721352 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1889,8 +1889,14 @@ pickup(pickup_t * currpickup, int pickup_way, int *page, which = *page * nPickups - *nfriend; if (which < 0) which = 0; + for (; which < utmpnumber && size < nPickups; which++) { - u = &SHM->uinfo[ulist[which]]; + + if (pickup_way == 0) /* [嗨! 朋友] mode */ + u = &SHM->uinfo[which]; /* 有些人用此打廣告,所以不再sort */ + else + u = &SHM->uinfo[ulist[which]]; + friend = friend_stat(currutmp, u); /* TODO isvisible() 重複用到了 friend_stat() */ if ((pickup_way || |