diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 17:45:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 17:45:17 +0300 |
commit | c79a9b4ffa2762be199b85a78cd798d4bccc9b1b (patch) | |
tree | 6af5203fb1462ac1cb10a0c081021f89a12863bd /src/net/ea | |
parent | 72cc15bc148acc2484a2be3b6e7da322735aca95 (diff) | |
download | manaplus-c79a9b4ffa2762be199b85a78cd798d4bccc9b1b.tar.gz manaplus-c79a9b4ffa2762be199b85a78cd798d4bccc9b1b.tar.bz2 manaplus-c79a9b4ffa2762be199b85a78cd798d4bccc9b1b.tar.xz manaplus-c79a9b4ffa2762be199b85a78cd798d4bccc9b1b.zip |
Add server feature haveIncompleteChatMessages.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/chathandler.cpp | 4 |
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(); |