sync the message length limit with the client to 256 chars

This commit is contained in:
Gunter Labes 2007-08-27 16:08:44 +00:00
parent b6a8fe9ab5
commit c4d4503ca7

View file

@ -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;