mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 17:47:12 -04:00
Chat 'log to disc' option should always be disabled in web client
This commit is contained in:
parent
cde14930d7
commit
d21756643c
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user