summaryrefslogtreecommitdiffstats
path: root/mbbsd/friend.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-04 11:28:03 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-04 11:28:03 +0800
commit3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f (patch)
tree0f02d2f3430a3a4c83e065be714911e6692973a2 /mbbsd/friend.c
parent0e2472de4ee9255a0c26b8cffdbeedb886d57c68 (diff)
downloadpttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.gz
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.bz2
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.lz
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.xz
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.zst
pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.zip
Use file_exist_record directly
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4392 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r--mbbsd/friend.c4
1 files changed, 2 insertions, 2 deletions
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);