diff options
-rw-r--r-- | mbbsd/board.c | 2 | ||||
-rw-r--r-- | mbbsd/chat.c | 3 | ||||
-rw-r--r-- | mbbsd/menu.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index e63ac303..189c7102 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1620,7 +1620,7 @@ choose_board(int newflag) break; case 's': { - char bname[IDLEN*2]; + char bname[IDLEN+1]; move(0, 0); clrtoeol(); CompleteBoardAndGroup(ANSI_REVERSE diff --git a/mbbsd/chat.c b/mbbsd/chat.c index 5bf56c83..2a5343f8 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -362,6 +362,9 @@ t_chat(void) return -1; } + if (!HasUserPerm(PERM_CHAT)) + return -1; + syncnow(); #ifdef CHAT_GAPMINS diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 1e7b40fa..dbf038d2 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -517,7 +517,7 @@ static const commands_t talklist[] = { // 沒道理可以 talk 不能水球。 {t_talk, PERM_LOGINOK, "TTalk 找人聊聊"}, // PERM_CHAT 非 login 也有,會有人用此吵別人。 - {t_chat, PERM_LOGINOK, "CChat 多人聊天室"}, + {t_chat, PERM_LOGINOK, "CChat 【多人聊天室】"}, {t_pager, PERM_BASIC, "PPager 切換呼叫器"}, {t_idle, 0, "IIdle 發呆"}, {t_qchicken, 0, "WWatch Pet 查詢寵物"}, |