From 9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Sep 2014 20:27:37 +0300 Subject: eathena: remove some special chars from gm messages. --- src/net/eathena/chathandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/eathena/chathandler.cpp') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 6e2ab0fb3..beae2731b 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -332,6 +332,10 @@ void ChatHandler::processGmChat(Net::MessageIn &msg) } std::string chatMsg = msg.readRawString(chatMsgLength, "message"); + // remove non persistend "colors" from server. + if (!findCutFirst(chatMsg, "ssss")) + findCutFirst(chatMsg, "eulb"); + const size_t pos = chatMsg.find(" : ", 0); if (chatWindow) -- cgit v1.2.3-60-g2f50