summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-25 08:49:55 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-25 08:49:55 +0800
commit848a640efe17f71e6ec6f0e29ddf4c39be42eb4d (patch)
tree6cc3563ffa9d642decf1805d8209b5eae34fd6e1 /mbbsd
parent89891cc0a2406c87630f04063a14c10fb9c6a110 (diff)
downloadpttbbs-848a640efe17f71e6ec6f0e29ddf4c39be42eb4d.tar
pttbbs-848a640efe17f71e6ec6f0e29ddf4c39be42eb4d.tar.gz
pttbbs-848a640efe17f71e6ec6f0e29ddf4c39be42eb4d.tar.bz2
pttbbs-848a640efe17f71e6ec6f0e29ddf4c39be42eb4d.tar.lz
pttbbs-848a640efe17f71e6ec6f0e29ddf4c39be42eb4d.tar.xz
pttbbs-848a640efe17f71e6ec6f0e29ddf4c39be42eb4d.tar.zst
pttbbs-848a640efe17f71e6ec6f0e29ddf4c39be42eb4d.zip
'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
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/talk.c4
1 files changed, 2 insertions, 2 deletions
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);