Functions | |
void | truncate_message (const simple_wml::string_span &str, simple_wml::node &message) |
Function to ensure a text message is within the allowed length. More... | |
Variables | |
const size_t | max_message_length = 256 |
void wesnothd::chat_message::truncate_message | ( | const simple_wml::string_span & | str, |
simple_wml::node & | message | ||
) |
Function to ensure a text message is within the allowed length.
Definition at line 29 of file player_network.cpp.
References simple_wml::string_span::begin(), simple_wml::string_span::end(), max_message_length, simple_wml::node::set_attr_dup(), simple_wml::string_span::size(), and utf8::truncate_as_ucs4().
Referenced by wesnothd::room_manager::process_message(), wesnothd::game::process_message(), and wesnothd::game::process_turn().
const size_t wesnothd::chat_message::max_message_length = 256 |
Definition at line 27 of file player_network.cpp.
Referenced by truncate_message().