From 848a640efe17f71e6ec6f0e29ddf4c39be42eb4d Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 25 Dec 2003 00:49:55 +0000 Subject: 'a' will not cause adding an exist friend, 'd' fixed, either git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 5bba046b..7cb345c4 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2230,7 +2230,7 @@ userlist(void) redrawall = redraw = 1; break; case 'a': - if (HAS_PERM(PERM_LOGINOK)) { + if (HAS_PERM(PERM_LOGINOK) && !(fri_stat & HFM)) { if (getans("確定要加入好友嗎 [Y/n]") == 'n') break; friend_add(uentp->userid, FRIEND_OVERRIDE,uentp->username); @@ -2240,7 +2240,7 @@ userlist(void) break; case 'd': - if (HAS_PERM(PERM_LOGINOK)) { + if (HAS_PERM(PERM_LOGINOK) && (fri_stat & HFM)) { if (getans("確定要刪除好友嗎 [Y/n]") == 'n') break; friend_delete(uentp->userid, FRIEND_OVERRIDE); -- cgit v1.2.3