Chat 'log to disc' option should always be disabled in web client

This commit is contained in:
UnknownShadow200 2020-06-12 23:49:17 +10:00
parent cde14930d7
commit d21756643c
2 changed files with 7 additions and 0 deletions

View File

@ -610,7 +610,9 @@ static void Chat_Init(void) {
Commands_Register(&TeleportCommand); Commands_Register(&TeleportCommand);
Commands_Register(&ClearDeniedCommand); Commands_Register(&ClearDeniedCommand);
#ifndef CC_BUILD_MINFILES
Chat_Logging = Options_GetBool(OPT_CHAT_LOGGING, true); Chat_Logging = Options_GetBool(OPT_CHAT_LOGGING, true);
#endif
} }
static void Chat_Reset(void) { static void Chat_Reset(void) {

View File

@ -2627,6 +2627,11 @@ static void ChatOptionsScreen_InitWidgets(struct MenuOptionsScreen* s) {
s->numWidgets = 4 + MENUOPTIONS_CORE_WIDGETS; s->numWidgets = 4 + MENUOPTIONS_CORE_WIDGETS;
MenuOptionsScreen_InitButtons(s, buttons, Array_Elems(buttons), Menu_SwitchOptions); MenuOptionsScreen_InitButtons(s, buttons, Array_Elems(buttons), Menu_SwitchOptions);
/* If MINFILES is defined, chat logging code is not even included at all */
#ifdef CC_BUILD_MINFILES
s->buttons[2].disabled = true;
#endif
} }
void ChatOptionsScreen_Show(void) { void ChatOptionsScreen_Show(void) {