diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-12-24 12:10:43 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-12-24 12:10:43 +0800 |
commit | 9d00f3d76b14803954de6ff9fb93f34e2385b525 (patch) | |
tree | 87d5e97c25a8cce77eff53c7bbeda60a8095655a | |
parent | 6663e2e5e7484c54c2b52859b7d4c0bc12510d57 (diff) | |
download | pttbbs-9d00f3d76b14803954de6ff9fb93f34e2385b525.tar pttbbs-9d00f3d76b14803954de6ff9fb93f34e2385b525.tar.gz pttbbs-9d00f3d76b14803954de6ff9fb93f34e2385b525.tar.bz2 pttbbs-9d00f3d76b14803954de6ff9fb93f34e2385b525.tar.lz pttbbs-9d00f3d76b14803954de6ff9fb93f34e2385b525.tar.xz pttbbs-9d00f3d76b14803954de6ff9fb93f34e2385b525.tar.zst pttbbs-9d00f3d76b14803954de6ff9fb93f34e2385b525.zip |
ask before add/del a friend
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1425 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/talk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 698d0d3c..827a9406 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2231,6 +2231,8 @@ userlist(void) break; case 'a': if (HAS_PERM(PERM_LOGINOK)) { + if (getans("確定要加入好友嗎 [Y/n]") == 'n') + break; friend_add(uentp->userid, FRIEND_OVERRIDE,uentp->username); friend_load(FRIEND_OVERRIDE); redrawall = redraw = 1; @@ -2239,6 +2241,8 @@ userlist(void) case 'd': if (HAS_PERM(PERM_LOGINOK)) { + if (getans("確定要刪除好友嗎 [Y/n]") == 'n') + break; friend_delete(uentp->userid, FRIEND_OVERRIDE); friend_load(FRIEND_OVERRIDE); redrawall = redraw = 1; |