implemented max_message_length in message loop
This commit is contained in:
parent
13d4e2f480
commit
4d6b29e4c6
@ -626,7 +626,7 @@ void *why2_communicate_thread(void *arg)
|
|||||||
//TRIM MESSAGE
|
//TRIM MESSAGE
|
||||||
trim_string(&decoded_buffer);
|
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
|
if (decoded_buffer[0] == '!') //COMMANDS
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user