mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Escape more strings: formspecs, item descriptions, infotexts...
Also, change the escape character to the more standard \x1b Thus, it can be used in the future for translation or colored text, for example.
This commit is contained in:
parent
21079cc8eb
commit
48939df9a5
8 changed files with 105 additions and 83 deletions
|
@ -679,8 +679,8 @@ ChatBackend::~ChatBackend()
|
|||
|
||||
void ChatBackend::addMessage(std::wstring name, std::wstring text)
|
||||
{
|
||||
name = removeChatEscapes(name);
|
||||
text = removeChatEscapes(text);
|
||||
name = unescape_enriched(name);
|
||||
text = unescape_enriched(text);
|
||||
|
||||
// Note: A message may consist of multiple lines, for example the MOTD.
|
||||
WStrfnd fnd(text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue