summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 02:52:15 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 02:52:15 +0300
commit2241f009d34a1c67a87723210e9d7cd6892f8646 (patch)
treed79e3ccea037e7786b91f7c22f278c3b20bfc26f
parentab596ef3f4215f792feaa9ca1dfe5acb74c67328 (diff)
downloadmanaverse-2241f009d34a1c67a87723210e9d7cd6892f8646.tar.gz
manaverse-2241f009d34a1c67a87723210e9d7cd6892f8646.tar.bz2
manaverse-2241f009d34a1c67a87723210e9d7cd6892f8646.tar.xz
manaverse-2241f009d34a1c67a87723210e9d7cd6892f8646.zip
Allow enter special chars in chat in tmw server.
Before this function was blocked only for tmw server because oficial clients was crashed after show crafted unicode chars. Example: test &33; test fill show in chat: test ! test
-rw-r--r--src/gui/chatwindow.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index c69e7b8a2..590946c4e 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -1571,9 +1571,6 @@ void ChatWindow::saveState()
std::string ChatWindow::doReplace(const std::string &msg)
{
- if (Client::isTmw())
- return msg;
-
std::string str = msg;
replaceSpecialChars(str);
return str;