From 3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f Mon Sep 17 00:00:00 2001 From: wens Date: Mon, 4 Aug 2008 03:28:03 +0000 Subject: Use file_exist_record directly git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4392 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/friend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/friend.c') diff --git a/mbbsd/friend.c b/mbbsd/friend.c index abb736c7..1d63335e 100644 --- a/mbbsd/friend.c +++ b/mbbsd/friend.c @@ -74,7 +74,7 @@ friend_add(const char *uident, int type, const char* des) if (friend_count(fpath) > friend_max[type]) return; - if ((uident[0] > ' ') && !belong(fpath, uident)) { + if ((uident[0] > ' ') && !file_exist_record(fpath, uident)) { char buf[MAX_DESCLEN] = "", buf2[STRLEN]; char t_uident[IDLEN + 1]; @@ -635,7 +635,7 @@ t_fix_aloha() // xid in my override list? setuserfile(fn, "alohaed"); - if (belong(fn, xid)) + if (file_exist_record(fn, xid)) { prints(ANSI_COLOR(1;32) "[%s] 確實在你的上站通知名單內。" "請編輯 [上站通知名單]。" ANSI_RESET "\n", xid); -- cgit v1.2.3