mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove chat escape sequences from chat messages, for future colored chat.
This commit is contained in:
parent
af30183124
commit
095f623fa7
3 changed files with 37 additions and 0 deletions
|
@ -679,6 +679,9 @@ ChatBackend::~ChatBackend()
|
|||
|
||||
void ChatBackend::addMessage(std::wstring name, std::wstring text)
|
||||
{
|
||||
name = removeChatEscapes(name);
|
||||
text = removeChatEscapes(text);
|
||||
|
||||
// Note: A message may consist of multiple lines, for example the MOTD.
|
||||
WStrfnd fnd(text);
|
||||
while (!fnd.atend())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue