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:
parent
7bcedd1c78
commit
80c4490f22
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue