The Battle for Wesnoth  1.13.11+dev
Functions | Variables
wesnothd::chat_message Namespace Reference


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...


const size_t max_message_length = 256

Function Documentation

◆ truncate_message()

void wesnothd::chat_message::truncate_message ( const simple_wml::string_span str,
simple_wml::node message 

Variable Documentation

◆ max_message_length

const size_t wesnothd::chat_message::max_message_length = 256

Definition at line 27 of file player_network.cpp.

Referenced by truncate_message().