diff options
-rw-r--r-- | mbbsd/menu.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 1e42410c..b27abaf6 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -473,6 +473,7 @@ static int m_jcee() { static int forsearch(); static int playground(); +static int chessroom(); /* Ptt Play menu */ static commands_t playlist[] = { @@ -491,9 +492,22 @@ static commands_t playlist[] = { {chicken_main,PERM_LOGINOK, "CChicken " "【\033[1;34m Ptt養雞場 \033[m】"}, {playground,PERM_LOGINOK, "AAmusement 【\033[1;33m Ptt遊樂場 \033[m】"}, + {chessroom, PERM_LOGINOK, "BChineseChess 【\033[1;34m Ptt棋院\033[m】"}, {NULL, 0, NULL} }; +static commands_t chesslist[] = { + {chc_main, PERM_LOGINOK, "1ChessFight 【\033[1;33m 邀 局 \033[m】"}, + {chc_personal, PERM_LOGINOK, "2SelfPlay 【\033[1;34m 打 譜 \033[m】"}, + {chc_watch, PERM_LOGINOK, "3ChessWatch 【\033[1;35m 觀 棋 \033[m】"}, + {NULL, 0, NULL} +}; + +static int chessroom() { + domenu(CHC, "Ptt棋院", '1', chesslist); + return 0; +} + static commands_t plist[] = { /* {p_ticket_main, PERM_LOGINOK,"00Pre 【 總統機 】"}, |