From 13d4e2f4807f96d917bc8833a0dd96e12b3f8ee8 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 25 Feb 2024 20:25:38 +0100 Subject: [PATCH] created max_message_length in server cfg --- src/chat/config/server.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/chat/config/server.toml b/src/chat/config/server.toml index 869553d..1550f7a 100644 --- a/src/chat/config/server.toml +++ b/src/chat/config/server.toml @@ -22,4 +22,6 @@ communication_time = 300 # Seconds waiting for client message before stopping co max_username_length = 20 # Maximal username length min_username_length = 4 # Minimal username length -max_username_tries = 3 # Times asking client for username (if client tries to use invalid username) \ No newline at end of file +max_username_tries = 3 # Times asking client for username (if client tries to use invalid username) + +max_message_length = 100 # Maximal message length \ No newline at end of file