aboutsummaryrefslogtreecommitdiff
path: root/builtin/settingtypes.txt
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2016-10-04 18:17:12 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2016-10-05 00:13:37 +0200
commitd4c76258e37337ea585cf24d8e05b50a30fa307d (patch)
tree6936b8f843171843008743e1341fe431222eec82 /builtin/settingtypes.txt
parent1079aeaa13a94c67c1e0a0bd1c461e14841a1eec (diff)
downloadminetest-d4c76258e37337ea585cf24d8e05b50a30fa307d.tar.gz
minetest-d4c76258e37337ea585cf24d8e05b50a30fa307d.tar.bz2
minetest-d4c76258e37337ea585cf24d8e05b50a30fa307d.zip
Chat: new settings to prevent spam
Added the following chat coreside features * Chat messages length limit * Message rate limiting * Message rate kicking Note: * handleChat now takes RemotePlayer pointer instead of u16 to remove useless lookups
Diffstat (limited to 'builtin/settingtypes.txt')
-rw-r--r--builtin/settingtypes.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index 15fab0f30..95cc826a0 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -774,6 +774,15 @@ time_speed (Time speed) int 72
# Interval of saving important changes in the world, stated in seconds.
server_map_save_interval (Map save interval) float 5.3
+# Set the maximum character length of a chat message sent by clients.
+# chat_message_max_size int 500
+
+# Limit a single player to send X messages per 10 seconds.
+# chat_message_limit_per_10sec float 10.0
+
+# Kick player if send more than X messages per 10 seconds.
+# chat_message_limit_trigger_kick int 50
+
[**Physics]
movement_acceleration_default (Default acceleration) float 3