summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-25 08:57:53 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-25 08:57:53 +0800
commit6e278955b19ee205aa23c0a8d67ea21de43860f3 (patch)
treea4a7b466dbf7829aba6108b304a11bb3cde8d301
parent848a640efe17f71e6ec6f0e29ddf4c39be42eb4d (diff)
downloadpttbbs-6e278955b19ee205aa23c0a8d67ea21de43860f3.tar
pttbbs-6e278955b19ee205aa23c0a8d67ea21de43860f3.tar.gz
pttbbs-6e278955b19ee205aa23c0a8d67ea21de43860f3.tar.bz2
pttbbs-6e278955b19ee205aa23c0a8d67ea21de43860f3.tar.lz
pttbbs-6e278955b19ee205aa23c0a8d67ea21de43860f3.tar.xz
pttbbs-6e278955b19ee205aa23c0a8d67ea21de43860f3.tar.zst
pttbbs-6e278955b19ee205aa23c0a8d67ea21de43860f3.zip
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1432 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/talk.c8
1 files changed, 4 insertions, 4 deletions
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);