From 095f623fa7278375a6fa4fe01ed39d2b68cce7af Mon Sep 17 00:00:00 2001 From: Ekdohibs Date: Tue, 15 Mar 2016 13:34:27 +0100 Subject: Remove chat escape sequences from chat messages, for future colored chat. --- src/chat.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/chat.cpp') diff --git a/src/chat.cpp b/src/chat.cpp index 809d4e422..495e3450b 100644 --- a/src/chat.cpp +++ b/src/chat.cpp @@ -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()) -- cgit v1.2.3