diff options
-rw-r--r-- | pttbbs/include/proto.h | 1 | ||||
-rw-r--r-- | pttbbs/mbbsd/xyz.c | 64 |
2 files changed, 0 insertions, 65 deletions
diff --git a/pttbbs/include/proto.h b/pttbbs/include/proto.h index 47050b43..e080290e 100644 --- a/pttbbs/include/proto.h +++ b/pttbbs/include/proto.h @@ -734,7 +734,6 @@ int do_voteboard(int); void do_voteboardreply(const fileheader_t *fhdr); /* xyz */ -int m_sysop(void); int x_boardman(void); int x_login(void); int x_week(void); diff --git a/pttbbs/mbbsd/xyz.c b/pttbbs/mbbsd/xyz.c index 62ee6c82..9c7a8a46 100644 --- a/pttbbs/mbbsd/xyz.c +++ b/pttbbs/mbbsd/xyz.c @@ -66,70 +66,6 @@ x_login(void) return 0; } -static void -mail_sysop(void) -{ - FILE *fp; - char genbuf[STRLEN]; - - if ((fp = fopen("etc/sysop", "r"))) { - int i, j; - char *ptr; - - typedef struct sysoplist_t { - char userid[IDLEN + 1]; - char duty[40]; - } sysoplist_t; - sysoplist_t sysoplist[9]; - - j = 0; - while (fgets(genbuf, sizeof(genbuf), fp)) { - if ((ptr = strchr(genbuf, '\n'))) { - *ptr = '\0'; - if ((ptr = strchr(genbuf, ':'))) { - *ptr = '\0'; - do { - i = *++ptr; - } while (i == ' ' || i == '\t'); - if (i) { - strlcpy(sysoplist[j].userid, genbuf, - sizeof(sysoplist[j].userid)); - strlcpy(sysoplist[j++].duty, ptr, - sizeof(sysoplist[j].duty)); - } - } - } - } - fclose(fp); - - move(12, 0); - clrtobot(); - outs(" 編號 站長 ID 權責劃分\n\n"); - - for (i = 0; i < j; i++) - prints("%15d. " ANSI_COLOR(1;%d) "%-16s%s" ANSI_COLOR(0) "\n", - i + 1, 31 + i % 7, sysoplist[i].userid, sysoplist[i].duty); - prints("%-14s0. " ANSI_COLOR(1;%d) "離開" ANSI_COLOR(0) "", "", 31 + j % 7); - getdata(b_lines - 1, 0, " 請輸入代碼[0]:", - genbuf, 4, DOECHO); - i = genbuf[0] - '0' - 1; - if (i >= 0 && i < j) { - char *suser = sysoplist[i].userid; - clear(); - showplans(suser); - do_send(suser, NULL, __FUNCTION__); - } - } -} - -int -m_sysop(void) -{ - setutmpmode(MSYSOP); - mail_sysop(); - return 0; -} - int Goodbye(void) { |