1
0
Fork 0
mirror of https://gitlab.com/niansa/discord_llama.git synced 2025-03-06 20:48:25 +01:00

Limit message length properly

This commit is contained in:
niansa 2023-05-25 11:45:31 +02:00
parent 7bcedd1c78
commit 80c4490f22

View file

@ -377,7 +377,7 @@ private:
// Check for timeout
if (!check_timeout(timeout, new_msg, slow)) return false;
// Make sure message isn't too long
if (new_msg.content.size() > 3995-config.texts.length_error.size()) {
if (new_msg.content.size() > 1995-config.texts.length_error.size()) {
response_too_long = true;
return false;
}