summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-06-10 12:49:44 +0100
committerSmallJoker <mk939@ymail.com>2018-06-03 17:31:59 +0200
commit0664b5f77226b7a2308e85898295378e04158923 (patch)
tree4078e94042837335f43f1b56387d553cc1b95de9 /builtin
parent14b039f0b4c8bddc1d4760dc7277f72392385d7d (diff)
downloadminetest-0664b5f77226b7a2308e85898295378e04158923.tar.gz
minetest-0664b5f77226b7a2308e85898295378e04158923.tar.bz2
minetest-0664b5f77226b7a2308e85898295378e04158923.zip
Add a server-sided way to remove color codes from incoming chat messages (#5948)
These code be generated by CSM, a modded client or just copy and pasted by the player. Changes - Update configuration example and setting translation file. - Remove colour codes before logging chat. - Add setting to remove colour codes before processing the chat.
Diffstat (limited to 'builtin')
-rw-r--r--builtin/settingtypes.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index 5182cb3f7..0da66750a 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -721,6 +721,10 @@ server_announce (Announce server) bool false
# If you want to announce your ipv6 address, use serverlist_url = v6.servers.minetest.net.
serverlist_url (Serverlist URL) string servers.minetest.net
+# 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
+
[*Network]
# Network port to listen (UDP).