summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-28 01:23:09 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-28 01:23:09 +0800
commitbee84902a44c9470f2abe0cb638448b6363e27fb (patch)
tree9244762e88970ada009606edd45db91cbacfae22 /mbbsd
parent86a17dfbce1f952df93d07f843acc35e4dc0d250 (diff)
downloadpttbbs-bee84902a44c9470f2abe0cb638448b6363e27fb.tar
pttbbs-bee84902a44c9470f2abe0cb638448b6363e27fb.tar.gz
pttbbs-bee84902a44c9470f2abe0cb638448b6363e27fb.tar.bz2
pttbbs-bee84902a44c9470f2abe0cb638448b6363e27fb.tar.lz
pttbbs-bee84902a44c9470f2abe0cb638448b6363e27fb.tar.xz
pttbbs-bee84902a44c9470f2abe0cb638448b6363e27fb.tar.zst
pttbbs-bee84902a44c9470f2abe0cb638448b6363e27fb.zip
fix the numbers of selection bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@451 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/friend.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c
index 2df2025b..6becc8f9 100644
--- a/mbbsd/friend.c
+++ b/mbbsd/friend.c
@@ -1,4 +1,4 @@
-/* $Id: friend.c,v 1.12 2002/07/22 19:02:00 in2 Exp $ */
+/* $Id: friend.c,v 1.13 2002/07/27 17:23:09 kcwu Exp $ */
#include "bbs.h"
/* ------------------------------------- */
@@ -154,7 +154,7 @@ friend_append(int type, int count)
if (i != type) {
++j;
snprintf(buf, sizeof(buf),
- " (%d) %-s\n", i + 1, friend_list[(int)i]);
+ " (%d) %-s\n", j, friend_list[(int)i]);
outs(buf);
}
if (HAVE_PERM(PERM_SYSOP) || currmode & MODE_BOARD)
@@ -175,10 +175,9 @@ friend_append(int type, int count)
j = buf[0] - '1';
if (j >= type)
j++;
- if (!(HAVE_PERM(PERM_SYSOP) || currmode & MODE_BOARD) && j >= 4)
+ if (!(HAVE_PERM(PERM_SYSOP) || currmode & MODE_BOARD) && j >= 5)
return;
- }
- while (buf[0] < '1' || buf[0] > '9');
+ } while (buf[0] < '1' || buf[0] > '9');
if (j == FRIEND_SPECIAL)
friend_special();