From 6e278955b19ee205aa23c0a8d67ea21de43860f3 Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 25 Dec 2003 00:57:53 +0000 Subject: fix last commit bug git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1432 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 7cb345c4..ed17c8ef 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2230,8 +2230,8 @@ userlist(void) redrawall = redraw = 1; break; case 'a': - if (HAS_PERM(PERM_LOGINOK) && !(fri_stat & HFM)) { - if (getans("確定要加入好友嗎 [Y/n]") == 'n') + if (HAS_PERM(PERM_LOGINOK) && !(fri_stat & IFH)) { + if (getans("確定要加入好友嗎 [N/y]") != 'y') break; friend_add(uentp->userid, FRIEND_OVERRIDE,uentp->username); friend_load(FRIEND_OVERRIDE); @@ -2240,8 +2240,8 @@ userlist(void) break; case 'd': - if (HAS_PERM(PERM_LOGINOK) && (fri_stat & HFM)) { - if (getans("確定要刪除好友嗎 [Y/n]") == 'n') + if (HAS_PERM(PERM_LOGINOK) && (fri_stat & IFH)) { + if (getans("確定要刪除好友嗎 [N/y]") != 'y') break; friend_delete(uentp->userid, FRIEND_OVERRIDE); friend_load(FRIEND_OVERRIDE); -- cgit v1.2.3