The Battle for Wesnoth  1.19.0-dev
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 std::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 std::size_t wesnothd::chat_message::max_message_length = 256

Definition at line 27 of file player_network.cpp.

Referenced by truncate_message().