summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 5379d0be..aa370b1e 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -231,9 +231,10 @@ setperms(unsigned int pbits, char *pstring[])
((pbits >> (i + 16)) & 1 ? "ˇ" : "X"));
}
clrtobot();
- while (getdata(b_lines - 1, 0, "請按 [A-5] 切換設定,按 [Return] 結束:",
- choice, sizeof(choice), LCECHO)) {
- i = choice[0] - 'a';
+ while (
+ (i = getans("請按 [A-5] 切換設定,按 [Return] 結束:"))!='\r')
+ {
+ i = i - 'a';
if (i < 0)
i = choice[0] - '0' + 26;
if (i >= NUMPERMS)