The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions | Variables
wesnothd::chat_message Namespace Reference

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
 

Function Documentation

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

Variable Documentation

const size_t wesnothd::chat_message::max_message_length = 256

Definition at line 27 of file player_network.cpp.

Referenced by truncate_message().