summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-13 20:27:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-13 20:27:37 +0300
commit9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb (patch)
tree017e66ba4d6dfbcdae4a6545c756d27b7bc62c7d /src
parentde16b56073dd2c4926327bd990b008a39018f541 (diff)
downloadmv-9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb.tar.gz
mv-9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb.tar.bz2
mv-9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb.tar.xz
mv-9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb.zip
eathena: remove some special chars from gm messages.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/chathandler.cpp4
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)