diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 18:13:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 18:13:20 +0300 |
commit | b4a69fc693dcac28c84d9eee96f92d2bc56331ea (patch) | |
tree | 6774a684aa19dab71ba8f4ae93fcb88233707a1d /src/net/tmwa/chathandler.cpp | |
parent | 415d696feaa2981d555d1912f201b548c1f0ffad (diff) | |
download | mv-b4a69fc693dcac28c84d9eee96f92d2bc56331ea.tar.gz mv-b4a69fc693dcac28c84d9eee96f92d2bc56331ea.tar.bz2 mv-b4a69fc693dcac28c84d9eee96f92d2bc56331ea.tar.xz mv-b4a69fc693dcac28c84d9eee96f92d2bc56331ea.zip |
Add server feature haveChatChannels.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 0e2b0103b..c979536ae 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -30,6 +30,9 @@ #include "gui/windows/chatwindow.h" +#include "net/net.h" +#include "net/serverfeatures.h" + #include "net/tmwa/messageout.h" #include "net/tmwa/protocol.h" @@ -126,7 +129,7 @@ void ChatHandler::talk(const std::string &restrict text, const std::string mes = std::string(localPlayer->getName()).append( " : ").append(text); - if (serverVersion >= 8 && channel.size() == 3) + if (Net::getServerFeatures()->haveChatChannels() && channel.size() == 3) { MessageOut outMsg(CMSG_CHAT_MESSAGE2); // Added + 1 in order to let eAthena parse admin commands correctly |