diff options
-rw-r--r-- | include/modes.h | 3 | ||||
-rw-r--r-- | mbbsd/bbslua.c | 1 | ||||
-rw-r--r-- | mbbsd/var.c | 5 |
3 files changed, 5 insertions, 4 deletions
diff --git a/include/modes.h b/include/modes.h index f5cd6b18..6617e9fc 100644 --- a/include/modes.h +++ b/include/modes.h @@ -112,7 +112,8 @@ #define DEBUGSLEEPING 83 #define UMODE_CONN6 84 #define REVERSI 85 -#define MODE_MAX 86 /* 所有其他選單動態須在此之前 */ +#define UMODE_BBSLUA 86 +#define MODE_MAX 87 /* 所有其他選單動態須在此之前 */ /* menu.c 中的模式 */ #define QUIT 0x666 /* Return value to abort recursive functions */ diff --git a/mbbsd/bbslua.c b/mbbsd/bbslua.c index ddb4795c..b7736c65 100644 --- a/mbbsd/bbslua.c +++ b/mbbsd/bbslua.c @@ -425,6 +425,7 @@ bbslua(const char *fpath) "請按任意鍵開始執行 BBS-Lua 程式。 執行中您可隨時按下 Ctrl-C 強制中斷。" ANSI_RESET); + setutmpmode(UMODE_BBSLUA); vmsg(" BBS-Lua " BBSLUA_VERSION_STR ); // ready for running diff --git a/mbbsd/var.c b/mbbsd/var.c index 88a6f348..17dd550b 100644 --- a/mbbsd/var.c +++ b/mbbsd/var.c @@ -181,7 +181,6 @@ char * const str_post1 = STR_POST1; char * const str_post2 = STR_POST2; char * const BBSName = BBSNAME; -/* #define MAX_MODES 78 */ /* MAX_MODES is defined in common.h */ char * const ModeTypeTable[MAX_MODES] = { @@ -270,8 +269,8 @@ char * const ModeTypeTable[MAX_MODES] = { "下圍棋", /* UMODE_GO */ "[系統錯誤]", /* DEBUGSLEEPING */ "連六棋", /* UMODE_CONN6 */ - "", /* for future usage */ - "", + "黑白棋", /* REVERSI */ + "BBSLUA", /* UMODE_BBSLUA */ "", "", "", |