diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-15 04:33:47 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-15 04:33:47 +0800 |
commit | 026329f85c6ebcbec743d526a0c46bd1c0aab8bb (patch) | |
tree | 6f76835cc10bfa49f943a50f5c3db9d36c6c2459 /mbbsd/friend.c | |
parent | b26fbc65ed9d7cbca50f8758712a9b9b6b2bf853 (diff) | |
download | pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.gz pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.bz2 pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.lz pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.xz pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.zst pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.zip |
warning: searchuser() getuser() API change, don't change query string implicitly.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2627 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r-- | mbbsd/friend.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c index 2e487975..76d1fd88 100644 --- a/mbbsd/friend.c +++ b/mbbsd/friend.c @@ -268,7 +268,7 @@ inline void friend_load_real(int tosort, int maxf, --maxf; /* 因為最後一個要填 0, 所以先扣一個回來 */ while( fgets(genbuf, STRLEN, fp) && nFriends < maxf ) if( strtok(genbuf, str_space) && - (uid = searchuser(genbuf)) ) + (uid = searchuser(genbuf, NULL)) ) tarray[nFriends++] = uid; fclose(fp); @@ -310,7 +310,7 @@ friend_water(char *message, int type) int tuid; sscanf(line, "%s", userid); // XXX check buffer size - if ((tuid = searchuser(userid)) && tuid != usernum && + if ((tuid = searchuser(userid, NULL)) && tuid != usernum && (uentp = (userinfo_t *) search_ulist(tuid)) && isvisible_uid(tuid)) my_write(uentp->pid, message, uentp->userid, WATERBALL_PREEDIT, NULL); @@ -370,7 +370,7 @@ friend_edit(int type) if (*uident == 'a') { move(1, 0); usercomplete(msg_uid, uident); - if (uident[0] && searchuser(uident) && !InNameList(uident)) { + if (uident[0] && searchuser(uident, uident) && !InNameList(uident)) { friend_add(uident, type, NULL); dirty = 1; } |