From 4d6b29e4c6ead1a1e39aebf2f22e3a968c956901 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 25 Feb 2024 20:26:13 +0100 Subject: [PATCH] implemented max_message_length in message loop --- src/chat/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index 2b661ba..e7cefd0 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -626,7 +626,7 @@ void *why2_communicate_thread(void *arg) //TRIM MESSAGE trim_string(&decoded_buffer); - if (decoded_buffer != NULL && strlen(decoded_buffer) != 0) + if (decoded_buffer != NULL && strlen(decoded_buffer) != 0 && strlen(decoded_buffer) <= (unsigned long) server_config_int("max_message_length")) { if (decoded_buffer[0] == '!') //COMMANDS {