summaryrefslogtreecommitdiffstats
path: root/mbbsd/friend.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-04 11:57:37 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-04 11:57:37 +0800
commit1519bd7f94f6096595d833b55d66b98c381dec9a (patch)
tree602df753f4c597c4fd3d652effd30d8f27c4ca1f /mbbsd/friend.c
parent1d79f93affaf93c29cdc89bcc123441d04c1496d (diff)
downloadpttbbs-1519bd7f94f6096595d833b55d66b98c381dec9a.tar
pttbbs-1519bd7f94f6096595d833b55d66b98c381dec9a.tar.gz
pttbbs-1519bd7f94f6096595d833b55d66b98c381dec9a.tar.bz2
pttbbs-1519bd7f94f6096595d833b55d66b98c381dec9a.tar.lz
pttbbs-1519bd7f94f6096595d833b55d66b98c381dec9a.tar.xz
pttbbs-1519bd7f94f6096595d833b55d66b98c381dec9a.tar.zst
pttbbs-1519bd7f94f6096595d833b55d66b98c381dec9a.zip
partially fix #35
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3128 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r--mbbsd/friend.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c
index 179a0482..f9945253 100644
--- a/mbbsd/friend.c
+++ b/mbbsd/friend.c
@@ -340,8 +340,10 @@ friend_edit(int type)
dirty = 0;
while (1) {
stand_title(friend_list[type]);
+ /* TODO move (0, 40) just won't really work as it hints.
+ * The ANSI secapes will change x coordinate. */
move(0, 40);
- prints("(名單上限:%d個人)", friend_max[type]);
+ prints("(名單上限: %d 人)", friend_max[type]);
count = 0;
CreateNameList();
@@ -364,8 +366,8 @@ friend_edit(int type)
}
getdata(1, 0, (count ?
"(A)增加(D)刪除(E)修改(P)引入(L)詳細列出"
- "(K)刪除整個名單(W)丟水球(Q)結束?[Q]" :
- "(A)增加 (P)引入其他名單 (Q)結束?[Q]"),
+ "(K)刪除整個名單(W)丟水球(Q)結束?[Q] " :
+ "(A)增加 (P)引入其他名單 (Q)結束?[Q] "),
uident, 3, LCECHO);
if (uident[0] == 'a') {
move(1, 0);
@@ -393,7 +395,7 @@ friend_edit(int type)
} else if (uident[0] == 'l' && count)
more(fpath, YEA);
else if (uident[0] == 'k' && count) {
- getdata(2, 0, "整份名單將會被刪除,您確定嗎 (a/N)?", uident, 3,
+ getdata(2, 0, "刪除整份名單,確定嗎 (a/N)?", uident, 3,
LCECHO);
if (uident[0] == 'a')
unlink(fpath);
@@ -420,7 +422,7 @@ friend_edit(int type)
sscanf(line, "%" toSTR(IDLEN) "s", uident);
sethomefile(genbuf, uident,
type == FRIEND_ALOHA ? "aloha" : "postnotify");
- del_distinct(genbuf, cuser.userid);
+ del_distinct(genbuf, cuser.userid, 0);
}
fclose(fp);
}