sync the message length limit with the client to 256 chars
This commit is contained in:
parent
b6a8fe9ab5
commit
c4d4503ca7
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ config construct_server_message(const std::string& message, const game& g)
|
|||
|
||||
void truncate_message(t_string& str)
|
||||
{
|
||||
const size_t max_message_length = 240;
|
||||
const size_t max_message_length = 256;
|
||||
std::string newstr = str.str();
|
||||
newstr.resize(minimum<size_t>(str.size(),max_message_length));
|
||||
str = newstr;
|
||||
|
|
Loading…
Add table
Reference in a new issue