summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/proto.h2
-rw-r--r--include/pttstruct.h2
-rw-r--r--mbbsd/menu.c5
-rw-r--r--mbbsd/user.c36
-rw-r--r--mbbsd/var.c1
5 files changed, 2 insertions, 44 deletions
diff --git a/include/proto.h b/include/proto.h
index 82acb328..664c484b 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -694,8 +694,6 @@ int u_loginview(void);
int u_ansi(void);
int u_editplan(void);
int u_editsig(void);
-int u_switchproverb(void);
-int u_editproverb(void);
int u_cloak(void);
int u_register(void);
int u_list(void);
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 045de383..23fda808 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -72,7 +72,7 @@ typedef struct userec_t {
char lasthost[16]; /* 上次上站來源 */
int money; /* Ptt幣 */
char remoteuser[3]; /* 保留 目前沒用到的 */
- char proverb; /* 座右銘 */
+ char proverb; /* 座右銘 (unused) */
char email[50]; /* Email */
char address[50]; /* 住址 */
char justify[REGLEN + 1]; /* 審核資料 */
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;