diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-13 20:27:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-13 20:27:37 +0300 |
commit | 9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb (patch) | |
tree | 017e66ba4d6dfbcdae4a6545c756d27b7bc62c7d /src/net/eathena | |
parent | de16b56073dd2c4926327bd990b008a39018f541 (diff) | |
download | manaverse-9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb.tar.gz manaverse-9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb.tar.bz2 manaverse-9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb.tar.xz manaverse-9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb.zip |
eathena: remove some special chars from gm messages.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |