diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-28 01:23:09 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-28 01:23:09 +0800 |
commit | d7e6e078244dddb19fcecf288e45d5bf58c95bfb (patch) | |
tree | b697ce28ff15a1a9c33b111f737b76801784192f | |
parent | 46c762033353932c3cf689cde32d113e790dec8e (diff) | |
download | pttbbs-d7e6e078244dddb19fcecf288e45d5bf58c95bfb.tar pttbbs-d7e6e078244dddb19fcecf288e45d5bf58c95bfb.tar.gz pttbbs-d7e6e078244dddb19fcecf288e45d5bf58c95bfb.tar.bz2 pttbbs-d7e6e078244dddb19fcecf288e45d5bf58c95bfb.tar.lz pttbbs-d7e6e078244dddb19fcecf288e45d5bf58c95bfb.tar.xz pttbbs-d7e6e078244dddb19fcecf288e45d5bf58c95bfb.tar.zst pttbbs-d7e6e078244dddb19fcecf288e45d5bf58c95bfb.zip |
fix the numbers of selection bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@451 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/friend.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pttbbs/mbbsd/friend.c b/pttbbs/mbbsd/friend.c index 2df2025b..6becc8f9 100644 --- a/pttbbs/mbbsd/friend.c +++ b/pttbbs/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(); |