diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/menu.c | 5 | ||||
-rw-r--r-- | mbbsd/user.c | 36 | ||||
-rw-r--r-- | mbbsd/var.c | 1 |
3 files changed, 1 insertions, 41 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 8e196afc..933e37b7 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -148,17 +148,14 @@ show_menu(const commands_t * p) { register int n = 0; register char *s; - const char *state[4] = {"用功\型", "安逸型", "自定型", "SHUTUP"}; - char buf[80]; movie(currstat); move(menu_row, 0); while ((s = p[n].desc)) { if (HAS_PERM(p[n].level)) { - snprintf(buf, sizeof(buf), s + 2, state[cuser.proverb % 4]); prints("%*s (\033[1;36m%c\033[0m)%s\n", menu_column, "", s[1], - buf); + s+2); } n++; } diff --git a/mbbsd/user.c b/mbbsd/user.c index a66a21b1..5205f6e2 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -780,42 +780,6 @@ u_cloak(void) return XEASY; } -int -u_switchproverb(void) -{ - /* char *state[4]={"用功\型","安逸型","自定型","SHUTUP"}; */ - char buf[100]; - - cuser.proverb = (cuser.proverb + 1) % 4; - setuserfile(buf, fn_proverb); - if (cuser.proverb == 2 && dashd(buf)) { - FILE *fp = fopen(buf, "a"); - assert(fp); - - fprintf(fp, "座右銘狀態為[自定型]要記得設座右銘的內容唷!!"); - fclose(fp); - } - passwd_update(usernum, &cuser); - return 0; -} - -int -u_editproverb(void) -{ - char buf[100]; - - setutmpmode(PROVERB); - setuserfile(buf, fn_proverb); - move(1, 0); - clrtobot(); - outs("\n\n 請一行一行依序鍵入想系統提醒你的內容,\n" - " 儲存後記得把狀態設為 [自定型] 才有作用\n" - " 座右銘最多100條"); - pressanykey(); - vedit(buf, NA, NULL); - return 0; -} - void showplans(char *uid) { diff --git a/mbbsd/var.c b/mbbsd/var.c index 33c7fc0d..04d7e407 100644 --- a/mbbsd/var.c +++ b/mbbsd/var.c @@ -119,7 +119,6 @@ const char *fn_notes = "notes"; const char *fn_water = FN_WATER; const char *fn_visable = FN_VISABLE; const char *fn_mandex = "/.Names"; -const char *fn_proverb = "proverb"; const char *fn_boardlisthelp = FN_BRDLISTHELP; const char *fn_boardhelp = FN_BOARDHELP; |