From 29476f406b21379bea2565140aa7a94500597b96 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 9 Dec 2021 10:09:25 +0000 Subject: [PATCH] Enable strip_color_codes by default --- builtin/settingtypes.txt | 2 +- src/defaultsettings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index aad629900a..99c1c6607b 100644 --- a/builtin/settingtypes.txt +++ b/builtin/settingtypes.txt @@ -1078,7 +1078,7 @@ csm_restriction_noderange (Client-side node lookup range restriction) int 0 0 42 # Remove color codes from incoming chat messages # Use this to stop players from being able to use color in their messages -strip_color_codes (Strip color codes) bool false +strip_color_codes (Strip color codes) bool true # Set the maximum length of a chat message (in characters) sent by clients. chat_message_max_size (Chat message max length) int 500 10 65535 diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index c27da7988e..e1f45f869c 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -422,7 +422,7 @@ void set_default_settings() #endif // Server - settings->setDefault("strip_color_codes", "false"); + settings->setDefault("strip_color_codes", "true"); #ifndef NDEBUG settings->setDefault("random_mod_load_order", "true"); #else