diff options
-rw-r--r-- | pttbbs/mbbsd/friend.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/friend.c b/pttbbs/mbbsd/friend.c index 5b7992b2..8cf2eca2 100644 --- a/pttbbs/mbbsd/friend.c +++ b/pttbbs/mbbsd/friend.c @@ -139,6 +139,8 @@ friend_append(int type, int count) move(2, 0); clrtobot(); outs("要引入哪一個名單?\n"); + + // TODO make the selection algorithm better here. for (j = i = 0; i < 4; i++) if (i != type) { ++j; @@ -178,6 +180,8 @@ friend_append(int type, int count) if (j == FRIEND_SPECIAL) friend_special(); + if (!friend_file[j]) + return; setfriendfile(sfile, j); if ((fp = fopen(sfile, "r")) != NULL) { |