summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 17:45:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 17:45:17 +0300
commitc79a9b4ffa2762be199b85a78cd798d4bccc9b1b (patch)
tree6af5203fb1462ac1cb10a0c081021f89a12863bd /src/net/ea/chathandler.cpp
parent72cc15bc148acc2484a2be3b6e7da322735aca95 (diff)
downloadmv-c79a9b4ffa2762be199b85a78cd798d4bccc9b1b.tar.gz
mv-c79a9b4ffa2762be199b85a78cd798d4bccc9b1b.tar.bz2
mv-c79a9b4ffa2762be199b85a78cd798d4bccc9b1b.tar.xz
mv-c79a9b4ffa2762be199b85a78cd798d4bccc9b1b.zip
Add server feature haveIncompleteChatMessages.
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r--src/net/ea/chathandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index 62c6b17f8..c53243dc1 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -36,6 +36,8 @@
#include "gui/widgets/tabs/gmtab.h"
#include "net/messagein.h"
+#include "net/net.h"
+#include "net/serverfeatures.h"
#include "net/ea/eaprotocol.h"
@@ -302,7 +304,7 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg) const
std::string sender_name = ((pos == std::string::npos)
? "" : chatMsg.substr(0, pos));
- if (tmwServerVersion > 0)
+ if (Net::getServerFeatures()->haveIncompleteChatMessages())
{
// work around for "new" tmw server
sender_name = being->getName();