mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
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
This commit is contained in:
parent
1079aeaa13
commit
d4c76258e3
8 changed files with 125 additions and 11 deletions
|
@ -933,6 +933,18 @@
|
|||
# type: float
|
||||
# server_map_save_interval = 5.3
|
||||
|
||||
# Set the maximum character length of a chat message sent by clients. (0 to disable)
|
||||
# type: integer
|
||||
# chat_message_max_size = 500
|
||||
|
||||
# Limit a single player to send X messages per 10 seconds. (0 to disable)
|
||||
# type: float
|
||||
# chat_message_limit_per_10sec = 8.0
|
||||
|
||||
# Kick player if send more than X messages per 10 seconds. (0 to disable)
|
||||
# type: integer
|
||||
# chat_message_limit_trigger_kick = 50
|
||||
|
||||
### Physics
|
||||
|
||||
# type: float
|
||||
|
@ -1523,7 +1535,7 @@
|
|||
# profiler.default_report_format = txt
|
||||
|
||||
# The file path relative to your worldpath in which profiles will be saved to.
|
||||
#
|
||||
#
|
||||
# type: string
|
||||
# profiler.report_path = ""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue